[Python-3000] Unicode and OS strings (original) (raw)
Barry Warsaw barry at python.org
Fri Sep 14 13:30:10 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 ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sep 14, 2007, at 1:08 AM, Greg Ewing wrote:
Stephen J. Turnbull wrote:
You can't win that, because Unicode is the only encoding that attempts to guarantee even the possibility of round-tripping. Rubbish -- I can do print [ord(c) for c in myunicodestring] and get perfect round-trippability if I want.
I think my_unicode_string.encode('raw-unicode-escape) is equivalent.
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin)
iQCVAwUBRupww3EjvBPtnXfVAQKBWAP/dU7eBsgvg704+beCPRbcKkFJvQuVd7br D0irSae0P4IxQDC36dlVE+nUFvKWQDx0UPBmFfWb7CYZnmGpS+Z1hBNLzKy+5POJ A4KSVV9nv1+YGKZBna1zgxuiP9EEHo7MqPm5PxKHmMHqpmcns3U6hZxutBCXN7Sw pics7Kb7s6s= =fiv7 -----END PGP SIGNATURE-----
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]