RosettaCodeData/Task/String-length/Python/string-length-2.py

6 lines
105 B
Python
Raw Normal View History

2014-01-17 05:32:22 +00:00
# The letter Alef
print len(u'\u05d0'.encode('utf-8'))
# 2
print len(u'\u05d0'.encode('iso-8859-8'))
# 1