Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 3 comments
Closed

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

GoogleCodeExporter opened this issue Aug 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

See Issue 427.  Modifying your site.py as suggested should solve this issue.

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

  • Changed state: Duplicate

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: New

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant