Is There A Built In Python Function To Escape A String Of Unicode Characters Into Unicode Escape Sequences "\uxxxx\uxxxx\uxxxx"?
Like repr(), except converting into \uXXXX instead of \x00 *edited title
Solution 1:
repr() works fine on Unicode strings. For printable ASCII characters, it will print the character, and for unprintable characters, it will print the Unicode escape sequence.
Post a Comment for "Is There A Built In Python Function To Escape A String Of Unicode Characters Into Unicode Escape Sequences "\uxxxx\uxxxx\uxxxx"?"