From 3331675fb2073267deeafdd0a1d9c9eba67e9d2a Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Sep 2024 19:23:42 +1000 Subject: [PATCH] v0.4 - Add debugging --- goss-correctencoding.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goss-correctencoding.rb b/goss-correctencoding.rb index 07b071a..2734abf 100644 --- a/goss-correctencoding.rb +++ b/goss-correctencoding.rb @@ -30,9 +30,9 @@ class GossamerForumsCorrectEncoding < ImportScripts::Base end # Method to detect and fix text encoding - def fix_text_encoding(text) + def fix_text_encoding(raw_content) # Detect encoding - detection = CharlockHolmes::EncodingDetector.detect(text) + detection = CharlockHolmes::EncodingDetector.detect(raw_content) original_encoding = detection[:encoding] puts "Original encoding detected: #{original_encoding}"