v0.3 - Add debugging

This commit is contained in:
David Sainty 2024-09-09 16:44:00 +10:00
parent 1d5bae9d14
commit 15d6539bc1

View File

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