UnicodeEncodeError in compile
pyscripter at gmail.com
pyscripter at gmail.com
Mon Jan 9 23:24:36 EST 2012
More information about the Python-list mailing list
Mon Jan 9 23:24:36 EST 2012
- Previous message (by thread): decorator problem
- Next message (by thread): UnicodeEncodeError in compile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Using python 3.2 in Windows 7 I am getting the following:
>>compile('pass', r'c:\temp\工具\module1.py', 'exec')
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character
Can anybody explain why the compile statement tries to convert the unicode filename using mbcs? I know that sys.getfilesystemencoding returns 'mbcs' in Windows, but I thought that this is not used when unicode file names are provided.
- Previous message (by thread): decorator problem
- Next message (by thread): UnicodeEncodeError in compile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list