How to find number of characters in a unicode string?
ldo at geek-central.gen.new_zealand
Fri Sep 29 03:52:28 EDT 2006
In message <pan.2006.09.18.20.29.20.510034 at gmx.net>, Marc 'BlackJack'
> In <20060918221814.08625ea2.randhol+valid_for_reply_from_news at pvv.org>,
> Preben Randhol wrote:
>> Is there a way to calculate in characters
>> and not in bytes to represent the characters.
> Decode the byte string and use `len()` on the unicode string.
Hmmm, for some reason
More information about the Python-list