LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Can't debug when filepath has non-ascii characters #587

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm a chinese user, sometimes I use some chinese characters in directory name 
or filename,like this:

"D:\test\工具1\testpy.py" or "D:\test\tools1\测试1.py"

Will can't debug when the filepath has chinese characters,
In python 2.6, the debug behaviour is odd
In python 2.7, it prompt: UnicodeEncodeError: 'ascii' codec can't encode 
characters in position 12-13: ordinal not in range(128)

Is this a bug of python itself or pyscripter?

Original issue reported on code.google.com by xqt...@gmail.com on 13 Dec 2011 at 2:56

GoogleCodeExporter commented 9 years ago
See Issue 427.  Modifying your site.py as suggested should solve this issue.

Original comment by pyscripter on 13 Dec 2011 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 16 Dec 2011 at 11:05

GoogleCodeExporter commented 9 years ago
Fixed in version control.
See also 
http://pyscripter.blogspot.com/2012/02/dreaded-unicode-encodedecode-errors.html

Original comment by pyscripter on 5 Feb 2012 at 8:39