Showing posts with label unicode. Show all posts
Showing posts with label unicode. Show all posts

Sunday, May 11, 2008

Python and Unicode

Good presentation here on Python and Unicode.

The most important slide for me says:

s.decode(encoding)
* <type 'str'> to <type 'unicode'>

u.encode(encoding)
* <type 'unicode'> to <type 'str'>