Message142880
A common problem encountered when using python3 is writing non-ascii to stdout. This will work fine if stdout is a terminal and the terminal encoding handles the characters, but will fail if stdout is later redirected to a pipe. The docs for sys.stdout and for print should contain or point to an explanation of why, and how to solve the problem (ie: how to set the encoding for sys.stdout/sys.stderr).
Note that IMO it makes more sense for sys.stdout to default to the LOCALE encoding, but that should be a separate issue. |
|
Date |
User |
Action |
Args |
2011-08-24 13:18:14 | r.david.murray | set | recipients:
+ r.david.murray, docs@python |
2011-08-24 13:18:14 | r.david.murray | set | messageid: <1314191894.1.0.666645625262.issue12832@psf.upfronthosting.co.za> |
2011-08-24 13:18:13 | r.david.murray | link | issue12832 messages |
2011-08-24 13:18:12 | r.david.murray | create | |
|