v0.3 - Add debugging
This commit is contained in:
parent
1d5bae9d14
commit
15d6539bc1
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user