Like repr(), except converting into \uXXXX instead of \x00
*edited title
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With