Commits

Anonymous committed d687f36

Use real charset name: ISO-8859-1 and not latin-1

Comments (0)

Files changed (1)

hachoir-core/hachoir_core/tools.py

 
     if data:
         if not isinstance(data, unicode):
-            data = unicode(data, "latin1")
+            data = unicode(data, "ISO-8859-1")
             charset = "ascii"
         data = regex_control_code.sub(
             lambda regs: controlchars[ord(regs.group(1))], data)