Python - Unicode

> Procedural Languages > Python

1 - About

unicode is an object type unicode.

See also: Python - Encoding and Unicode

3 - Type

>>> type(u'myUnicode')
<type 'unicode'>

4 - Conversion

4.1 - Float

>>> unicode('%.3f' % 1)
u'1.000'

5 - Function

5.1 - Split

split() can be called directly on a unicode or str object. For example,

>>> u'split,me'.split(',')
[u'split', u'me']
Advertising

6 - Documentation / Reference