v0.4 - Add debugging

This commit is contained in:
David Sainty 2024-09-09 19:23:42 +10:00
parent fae7ef730a
commit 3331675fb2

View File

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