Message211726
Thanks, yes, Georg already pointed out the issue with print. I suppose that this is something that changed at some point in Python2's history but this bit of the docs was not updated.
Python can write anything to a file, you just have to tell it what encoding to use, either by explicitly encoding the unicode to binary before writing it to the file, or by using codecs.open and specifying an encoding for the file. (This is all much easier in python3, where the unicode support is part of the core of the language.) |
|
Date |
User |
Action |
Args |
2014-02-20 14:22:26 | r.david.murray | set | recipients:
+ r.david.murray, georg.brandl, docs@python, Daniel.U..Thibault |
2014-02-20 14:22:26 | r.david.murray | set | messageid: <1392906146.82.0.696557538908.issue20686@psf.upfronthosting.co.za> |
2014-02-20 14:22:26 | r.david.murray | link | issue20686 messages |
2014-02-20 14:22:26 | r.david.murray | create | |
|