[scribus] python, upper() and international characters

Henning Schröder henning.schroeder at gmail.com
Mon Aug 11 17:55:40 CEST 2008


2008/8/11 Ladislav DANKO <email at 1ac0.net>:

> may I have a question? I'm playing with Python in Scribus and I need to
> do upper() on international string, for example "kotrbová" (note acute
> above last character). When I do it the result is "KOTRBOVá" -stil the
> last character is small.
You have to make sure that the text is stored in an unicode type
instead of the default str type.

>>> print "ö".upper()
ö
>>> print u"ö".upper()
Ö

Google for Python and unicode and you will find lots of articles about it.


-- 
Henning




More information about the scribus mailing list