RosettaCodeData/Task/String-length/Python/string-length-2.py
2014-01-17 05:34:36 +00:00

5 lines
105 B
Python

# The letter Alef
print len(u'\u05d0'.encode('utf-8'))
# 2
print len(u'\u05d0'.encode('iso-8859-8'))
# 1