Getting unicode escape sequence from unicode character?

Kenneth McDonald kenneth.m.mcdonald at sbcglobal.net
Wed Dec 27 17:08:32 EST 2006


Given a Python unicode character (string of length one), how would I 
find out the \uXXXX escape sequence for it? This isn't obvious from the 
docs I've been looking through.

Thanks,
Ken



More information about the Python-list mailing list