5 Apr 2008 eopadoan   » (Journeyer)

Py3k I18n

Improving on Sam Ruby's example, to show that, in Python 3.0, code (names) can use unicode characters (also, the default encoding of the interpreter now is utf-8):

$ python3.0

Python 3.0a3+ (py3k:61959, Mar 26 2008, 21:02:26)

[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu6)] on linux2

Type "help", "copyright", "credits" or "license" for more


>>> Iñtërnâtiônàlizætiøn = 'Iñtërnâtiônàlizætiøn'

>>> print(len(Iñtërnâtiônàlizætiøn))



Use with care :)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!