newbie question about unicode

Genie T nguyenhuuthanh at gmail.com
Sat Jun 23 00:10:19 EDT 2007


Hi,

can anybody tell me whether these two expressions have the same
meanings?

s = u'<unicode string here>'
s1 = s.encode('utf-8')

AND

s1 = unicode(s,'utf-8')

Thanks :)




More information about the Python-list mailing list