Message191653
In python we have a saying that we follow most of the time: if you don't know, refuse the temptation to guess. So currently this is all working as designed: you have to know the encoding of the file you are trying to read as unicode.
Adding a 'guess' function that could be called explicitly is a possibility, but if we were to go that route we'd probably really want something general to guess the encoding of strings, such as (I think) ICU has. This larger topic is a topic more suited to python-ideas, probably followed, if response is positive, by a PEP.
So I'm closing this issue as rejected, but feel free to bring it up on python-ideas. (Search for existing threads about it first, please.) |
|
Date |
User |
Action |
Args |
2013-06-22 18:43:25 | r.david.murray | set | recipients:
+ r.david.murray, Sworddragon |
2013-06-22 18:43:25 | r.david.murray | set | messageid: <1371926605.49.0.401187705011.issue18282@psf.upfronthosting.co.za> |
2013-06-22 18:43:25 | r.david.murray | link | issue18282 messages |
2013-06-22 18:43:25 | r.david.murray | create | |
|