>>> 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!
-- http://mail.python.org/mailman/listinfo/python-list