[wxPython-users] There is a textfile on my system that is
unloadable in stc ?
Josiah Carlson
jcarlson at uci.edu
Sun Dec 3 09:24:01 PST 2006
f rom <etaoinbe at yahoo.com> wrote:
> There is a textfile on my system that is unloadable in stc ?
>
> For example with pype :
>
> [ Sun Dec 03 13:59:05 2006 ] Traceback (most recent call last):
> File "pype.py", line 1456, in OnDrop
> File "pype.py", line 1994, in newTab
> File "pype.py", line 3667, in SetText
> File "wx\stc.pyc", line 2842, in SetText
> File "encodings\cp1252.pyc", line 22, in decode
> UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4031: character maps to <undefined>
You seem to be using PyPE 2.7.1, specifically either the source with an
ansi build of wxPython, or the ansi PyPE Windows distribution.
PyPE 2.7.2 includes some fixes for better handling of unicode files, but
only if those files are opened with the windows unicode version, or
using the source with a unicode version of wxPython.
You can attempt to force using unicode (if you are running from source)
by passing --unicode on the command line.
- Josiah
More information about the wxpython-users
mailing list