> They can easily roundtrip that then to the encoding that it should have: > > good_string = sys.argv[bad_string_index].\ > encode(sys.argv_encoding, "pua-replace").decode(real_encoding)
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 _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
