v0.4 - Add debugging
This commit is contained in:
parent
fae7ef730a
commit
3331675fb2
@ -30,9 +30,9 @@ class GossamerForumsCorrectEncoding < ImportScripts::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Method to detect and fix text encoding
|
# Method to detect and fix text encoding
|
||||||
def fix_text_encoding(text)
|
def fix_text_encoding(raw_content)
|
||||||
# Detect encoding
|
# Detect encoding
|
||||||
detection = CharlockHolmes::EncodingDetector.detect(text)
|
detection = CharlockHolmes::EncodingDetector.detect(raw_content)
|
||||||
original_encoding = detection[:encoding]
|
original_encoding = detection[:encoding]
|
||||||
puts "Original encoding detected: #{original_encoding}"
|
puts "Original encoding detected: #{original_encoding}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user