Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check characters in utf 8

try:
    string.decode('utf-8')
    print("string is UTF-8, length %d bytes" % len(string))
except UnicodeError:
    print("string is not UTF-8")
 
PREVIOUS NEXT
Tagged: #python #check #characters #utf
ADD COMMENT
Topic
Name
5+2 =