I make console application in cx_Freeze. And I have follow error with unicode:
cp1251")
Traceback (most recent call last):
File "C:\Python27\lib\site- packages\cx_Freeze\ initscripts\Console.py", line 27
, in <module>
exec code in m.__dict__
File "carsDistrib.py", line 117, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordi
nal not in range(128)
# fix by set default coding:
try:
sys.setdefaultencoding("
except AttributeError:
pass
Комментариев нет:
Отправить комментарий