5 Apr 2008 eopadoan   » (Apprentice)

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

information.

>>> 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))

20

>>>

Use with care :)

Latest blog entries     Older blog entries

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

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!