[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


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...



More information about the Python-3000 mailing list