Python Unicode problem

C. Yu colinsyu at hotmail.com
Thu Aug 23 21:49:56 EDT 2001


I was wondering if anyone could help me in figuring out how to take a
unicode string like u"レーザー
プリンタ" (Japanese) and converting
each of the characters into \uXXXX escape code format in python 2.0?
Thus the python code would look something like u"\u0411\u0412..." and
so forth.  Any help would be greatly appreciated.  Thanks.



More information about the Python-list mailing list