I like Unicode more than I used to...
Skip Montanaro
skip at pobox.com
Fri Feb 14 13:31:15 EST 2003
For those of you living in a non-ASCII universe, I'm sure this will be
old-hat. You can hit 'd' now.
Now that I have a terminal application which can display utf-8 encoded data,
I'm beginning to form a better opinion of Unicode. I can do something like:
>>> import codecs
>>> f = codecs.open("foo.test", "wb", "utf-8")
>>> f.write("abc\r\n")
>>> f.write(u"\N{TRADE MARK SIGN}\r\n")
>>> f.write(u"\u8482\r\n")
>>> f.close()
then simply cat the file to see what God hath wrought:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf8new.png
Type: image/png
Size: 351 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030214/439e0cca/attachment.png>
-------------- next part --------------
That is so cool... :-)
Skip
More information about the Python-list
mailing list