From 15d6539bc128a529114b2e3a911d68111b8d3573 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Sep 2024 16:44:00 +1000 Subject: [PATCH] v0.3 - Add debugging --- goss-correctencoding.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goss-correctencoding.rb b/goss-correctencoding.rb index d12eab4..db136d9 100644 --- a/goss-correctencoding.rb +++ b/goss-correctencoding.rb @@ -33,7 +33,7 @@ class GossamerForumsCorrectEncoding < ImportScripts::Base def fix_text_encoding(text) begin # Detect encoding - detection = CharlockHolmes::Detect.detect(text) + detection = CharlockHolmes::EncodingDetector.detect(text) original_encoding = detection[:encoding] puts "Original encoding detected: #{original_encoding}"