Skip to content Skip to sidebar Skip to footer

Python Get Unicode String Size

I have a binary file. This file contains an UTF-8 string. Moreover, it is guaranteed that this string is just a single word. In python, how can I get number of letters in this stri

Solution 1:

unicode_string = bytes.decode("utf-8")
print len(unicode_string)

Post a Comment for "Python Get Unicode String Size"