Paul Moore added the comment:

Also, you need to:

1. Ensure you are using characters that are available in the encoding that 
sys.stdout uses - in Python prior to 3.6, this would be your Windows *console* 
code page, and in 3.6+ would be UTF-8.
2. Declare the encoding of your source code if you are not using the default 
(which is ASCII in Python 2, and UTF-8 in Python 3).

Specifically, if you write your source in UTF-8, or use an encoding declaration 
or \u escapes, and you use Python 3.6, this problem will likely have gone away.


Python tracker <>
Python-bugs-list mailing list

Reply via email to