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

Martin v. Löwis loewis at informatik.hu-berlin.de
Sun Oct 13 14:19:17 CEST 2002


"Paul Watson" <pwatson at mail.com> 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)

Regards,
Martin



More information about the Python-list mailing list