Pekka Niiranen wrote: > I need to loop thru characters in Unicode string > and store each character in format \U+hhhh, where > hhhh is the value of unicode character in hexadecimal? "".join(['\\U+%.4x' % ord(c) for c in unistr]) HTH, Martin