unicode wrap unicode object?

ygao ygao2004 at gmail.com
Fri Apr 7 19:32:57 EDT 2006


>>> import sys
>>> sys.setdefaultencoding("utf-8")
>>> s='\xe9\xab\x98' #this uff-8 string
>>> ss=U'\xe9\xab\x98'
>>> s
'\xe9\xab\x98'
>>> ss
u'\xe9\xab\x98'
>>> 
how do I get ss from s?
Can there be a way do this?
thanks!




More information about the Python-list mailing list