How to get a "screen" length of a multibyte string?

kobayashi pg.koba at
Sun Nov 25 14:48:25 CET 2012

Encoding is utf-8.
I use "screen length" means as that; that of ascii character is 1, and that of character having double width than ascii character is 2.
It's not bytes, but drawing width.
As you say, it depends font. I'll be considering carefully.

More information about the Python-list mailing list