Leviatus21 / pspstacklesspython

Automatically exported from code.google.com/p/pspstacklesspython
1 stars 1 forks source link

is this python version support unicode8? #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
is this python version  support unicode8?

Original issue reported on code.google.com by cra...@gmail.com on 25 Jul 2008 at 5:01

GoogleCodeExporter commented 8 years ago
Since Python 2.5 have the unicode() object, it supports UTF-8. Standard strings 
are
not UTF-8 in 2.5. They will be in 3.0.

To create a unicode string, follow this rule:

x = u'Test string in unicode'

>>> type(a)
<type 'unicode'>

Original comment by carlos...@gmail.com on 31 Jul 2008 at 6:48