[Python-3000] Unicode and OS strings (original) (raw)
Aahz aahz at pythoncraft.com
Sun Sep 16 02:40:05 CEST 2007
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Sep 14, 2007, "Martin v. L??wis" wrote:
Hagen:
And what if we skillfully conserve unknown bytes in a private use or surrogate area and the application author actually knows the encoding and wants correctly decoded strings? They can easily roundtrip that then to the encoding that it should have: _goodstring = sys.argv[badstringindex]._ encode(sys.argvencoding, "pua-replace").decode(realencoding)
That doesn't count as "easily" in my book. What about a sys._argv_orig containing bytes objects?
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
The best way to get information on Usenet is not to ask a question, but to post the wrong information.
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]