Name
unicode
Synopsis
unicode(string
[,codec
[,errors
]])
Returns the Unicode string object obtained by decoding
string
. codec
names the codec to use. If codec
is
missing, unicode
uses the default codec (generally
'ascii
'). errors
, if
present, is a string that specifies how to handle decoding errors.
See also Section 9.6 in Chapter 9, particularly for information about codecs and
errors
, and __unicode__ in Chapter 5.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.