>>>>> "Chris" == Chris Song <[EMAIL PROTECTED]> writes:
> Here's my solution > _unicodeRe = re.compile("(\\\u[\da-f]{4})") > def unisub(mo): > return unichr(int(mo.group(1)[2:],16)) > unicodeStrFromNetwork = '\u5927' > unicodeStrNative = _unicodeRe(unisub, unicodeStrFromNetwork) How about unicodeStrNative = eval("u'%s'" % (unicodeStrFromNetwork,)) Ganesan -- Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA Web: http://employees.org/~rganesan | http://rganesan.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list