Internationalization bug?? [Python 2.2.1, RedHat 8.0, Swedish]

Martin v. Löwis loewis at
Sun Oct 13 14:19:17 CEST 2002

"Paul Watson" <pwatson at> writes:

> If len() returns the number of bytes, what can Urban Anjar use to get the
> number of characters?

As I said:

s = unicode(s,'utf-8')
print len(s)


More information about the Python-list mailing list