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}"