+5
Console at bottom of IDE does not seem to support unicode?
Hello,
I believe this is a new bug.
I believe this is a new bug.
When I run my program from the Terminal in python, it runs perfectly.
Whereas, when I run it from sublime text, I get this error:
[... stuff ...]
if amtconf.debug_on: print(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u030a' in position 30: ordinal not in range(128)
The error is being caused by the debug statement trying to print a unicode string which contains a directory name including special characters like å and ø.
I've spent 2 hours looking into this and it appears to be an issue where the IO output will not allow unicode strings directly? i.e. I think the console window at the bottom of the IDE should be set to use UTF-8 rather than ascii.
Servicio de atención al cliente por UserEcho
"UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 16: ordinal not in range(128)".