$ python3.0
Python 3.0a1 (py3k, Aug 31 2007, 21:24:31)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print(len('Iñtërnâtiônàlizætiøn'))
20
>>>
:-)
How does it fair with characters outside of the basic multilingual plane? From memory, Python 2.x gives different answers depending on whether it was compiled in UCS2 or UCS4 mode.
[I guess I’ll find out for myself once I compile it ...]
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...