Possible Duplicate:
Python returning the wrong length of string when using special characters
I read a multilingual string from file in windows-1251
, for example s="qwe абв"
(second part in Russian), and then:
for i in s.decode('windows-1251').encode('utf-8').split():
print i, len(i)
and I get:
qwe 3
абв 6
Oh God, why? o_O