Unicode
Unicode - Don't trust your eyes
Submitted by Christoph on 14 June, 2008 - 13:46This should be nothing new to you when I say "Don't trust your eyes".
But specifically when it comes to Unicode, I feel like saying it again: "Really don't".
Unicode finally takes the lead...
Submitted by Christoph on 31 March, 2008 - 19:12...at least for Python 3.0.
Still hoping we can only wonder about sentences like the following in 10 years:
Some languages use special characters (Chinese, Japanese, Arabic, Klingon, etc.) that are difficult to handle with traditional software.
I love Unicode
Submitted by Christoph on 31 March, 2008 - 00:29[img_assist|nid=138|title=I�Unicode|link=node|align=left|width=460|height=83]
Stole this somewhere, I'll provide a link once I find it again.
See Unicode Specials on english Wikipedia for the "replacement character".
Python and Exceptions containing Unicode messages
Submitted by Christoph on 30 March, 2008 - 23:40Python (2.4 and 2.5 tested) seems to have problems when an exception is thrown that contains non-ASCII text as a message.
In my case I constructed an exception like
>>> try: ... raise Exception(u'Error when printing ü') ... except Exception, e: ... print e ... Traceback (most recent call last): File "", line 4, in ?
Python Unicode rant
Submitted by Christoph on 11 December, 2007 - 00:51If you are at the beginning of a new project and are currently considering which programming language to use, and furthermore you will definitely need Unicode support, then please consider some other languages than python.
Don't use python. Really only used it, if you have no other choice.
