The encoding argument to unicode() is used to specify the encoding of the 
string that you want to translate into unicode. The interpreter stores 
unicode as unicode, it isn't encoded...

>>> unicode('\xbe','cp1252')
u'\xbe'
>>> unicode('\xbe','cp1252').encode('utf-8')
'\xc2\xbe'
>>> 


max

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to