[Python-3000] Unicode and OS strings (original) (raw)
Hagen Fürstenau hagenf at CoLi.Uni-SB.DE
Fri Sep 14 14:46:34 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 ]
They can easily roundtrip that then to the encoding that it should have:
_goodstring = sys.argv[badstringindex]._ encode(sys.argvencoding, "pua-replace").decode(realencoding)
To me this doesn't look easier than sys.arguments() in the standard case and sys.arguments(encoding="whatever") if you know the special encoding.
Just my two cents...
- Hagen
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]