Answers for "how to unicode 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

convert character to unicode python

unicode('some charachter', "utf-8")
Posted by: Guest on February-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language