wxPython, py2exe, UnicodeDecodeError

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • artasis@gmail.com

    wxPython, py2exe, UnicodeDecodeError

    Hello! I've write wizard based on wxPython package and wanted to
    compile it to exe via py2exe. All works fine, all compile fine, but
    when I start wizard.exe - my compiled script - I'm getting an error:

    Traceback (most recent call last):
    File "init.py", line 484, in <module>
    File "init.py", line 87, in __init__
    File "wx\wizard.pyc" , line 349, in __init__
    File "encodings\cp12 51.pyc", line 15, in decode
    UnicodeDecodeEr ror: 'charmap' codec can't decode byte 0x98 in position
    60: character maps to <undefined>

    what's going wrong? Google could not give me answer on it :-(
  • artasis@gmail.com

    #2
    Re: wxPython, py2exe, UnicodeDecodeEr ror

    UPDATE: Forgot - yes, I'm using cyrillic text in my script, but it all
    encoded in utf8

    Comment

    • artasis@gmail.com

      #3
      Re: wxPython, py2exe, UnicodeDecodeEr ror

      pardon me for my stupidy, problem was in utf8 encoding. Changing all
      strings encode to unicode solve that problem

      Comment

      Working...