How to find number of characters in a unicode string?
Leif K-Brooks
eurleif at ecritters.biz
Fri Sep 29 04:33:38 EDT 2006
Lawrence D'Oliveiro wrote:
> Hmmm, for some reason
>
> len(u"C\u0327")
>
> returns 2.
Is len(unicodedata.normalize('NFC', u"C\u0327")) what you want?
More information about the Python-list
mailing list