If I do the following:
ustr = unicode()
ustr = '青皮'
print len(ustr)
I get an output of 6
. But that's the number of bytes.
How do I get an output of 2
? (i.e. the actual number of unicode code points)
If I do the following:
ustr = unicode()
ustr = '青皮'
print len(ustr)
I get an output of 6
. But that's the number of bytes.
How do I get an output of 2
? (i.e. the actual number of unicode code points)