Force logs encoding-a

This commit is contained in:
Charles Care
2019-12-05 15:47:50 +00:00
parent c3ac2053b5
commit ed7f9f42eb

View File

@@ -64,7 +64,7 @@ module Pipeline::Util
private
def fix_encoding(text)
return nil if text.nil
return nil if text.nil?
text.force_encoding("ISO-8859-1").encode("UTF-8")
rescue => e
puts e.message