how to make format operator % work with unicode as expected

Stefan Behnel stefan.behnel-n05pAM at web.de
Sun Jan 27 04:05:24 EST 2008


Ever heard the word "PLONK"?

Peter Pei harshly top-posted:
> You didn't understand my question, but thanks any way.
> 
> Yes, it is true that %s already support unicode, and I did not
> contradict that. But it counts the number of bytes instead of
> characters, and makes things like %-20s out of alignment. If you don't
> understand my assertion, please don't argue back and I am only
> interested in answers from those who are qualified.
> ==============================================================
> 
> "Steven D'Aprano" <steve at REMOVE-THIS-cybersource.com.au> wrote
[pretty qualifying response stripped]



More information about the Python-list mailing list