Travis Shirk  committed ad382ae

Use LOCAL_ENCODING when converting lyrics files (etc.) to unicode.

  • Participants
  • Parent commits 579ca6f
  • Branches stable

Comments (0)

Files changed (1)

File src/eyed3/plugins/

                     data =
                 raise ValueError("Unable to read file")
-            return (unicode(data), desc, lang)
+            return (unicode(data, LOCAL_ENCODING), desc, lang)
         def PlayCountArg(pc):
             if not pc:
                 raise ValueError("value required")
                 if mt is None:
                     raise ValueError("Cannot determine mime-type")
-            return (path, type_id, mt, unicode(desc))
+            return (path, type_id, mt, unicode(desc, LOCAL_ENCODING))
         def ObjectArg(s):
             Returns (path, mime_type, description, filename)'''