How to find number of characters in a unicode string?

Preben Randhol randhol+valid_for_reply_from_news at
Tue Sep 19 08:22:39 CEST 2006

On Mon, 18 Sep 2006 22:29:20 +0200
Marc 'BlackJack' Rintsch <bj_666 at> wrote:

> Yes and you already seem to know the answer:  Decode the byte string
> and use `len()` on the unicode string.

.decode("utf-8") did the trick. Thanks!


More information about the Python-list mailing list