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