Message195931
On 23 Aug 2013 01:40, "R. David Murray" <report@bugs.python.org> wrote:
. (I double checked, and this does indeed work...doing the equivalent of
ls >temp via python preserves the bytes with that PYTHONIOENCODING setting.
I don't quite understand, however, why I get the � chars if I don't
redirect the output.).
I assume the terminal window is doing the substitution for the improperly
encoded bytes.
Regarding the issue, perhaps we should convert this to a docs bug? Attempt
to make the "PYTHONIOENCODING=utf-8:surrogateescape" easier to discover?
Heck, it may be worth creating a stable URL that we can include in
surrogate related error messages... |
|
| Date |
User |
Action |
Args |
| 2013-08-22 23:04:42 | ncoghlan | set | recipients:
+ ncoghlan, lemburg, pitrou, vstinner, abadger1999, benjamin.peterson, ezio.melotti, a.badger, Arfrever, r.david.murray, serhiy.storchaka |
| 2013-08-22 23:04:42 | ncoghlan | link | issue18713 messages |
| 2013-08-22 23:04:42 | ncoghlan | create | |
|