Antoine Pitrou added the comment:

> "UnicodeEncodeError: 'charmap' codec can't encode character '\u265e' in 
> position 13: character maps to undefined". 

That's because stdout is treated as a regular bytestream under Windows (as it 
is under POSIX), and it therefore uses the current "codepage" to encode unicode 
strings. See issue1602.

> And why does it work as intended on linux?

Because under most current Linux systems, stdout's encoding will be utf-8, and 
therefore it will be able to represent the given unicode chars.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to