Answers for "How to create a Unicode string in Python?"

2

python print unicode character

def str_to_unicode(s: str):
    return s.encode("unicode_escape").decode()
print(str_to_unicode('Python is Great '))
Posted by: Guest on June-24-2021
0

how to convert unicode to string python

str.encode()
Posted by: Guest on May-13-2021

Code answers related to "How to create a Unicode string in Python?"

Python Answers by Framework

Browse Popular Code Answers by Language