Next / Previous / Contents / TCC Help System / NM Tech homepage

20.45. unicode(): Convert to a Unicode string

Use this function to convert a string to type unicode. For more information about Unicode, see Section 10, “Type unicode: Strings of 32-bit characters”.

>>> unicode('Pratt')
u'Pratt'
>>> unicode()
u''