Message290513
| Author |
paul.moore |
| Recipients |
Robert Baker, ezio.melotti, martin.panter, paul.moore, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2017年03月26日.07:41:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1490514075.96.0.693814083814.issue29907@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|