2006/1/31, Rocco <[EMAIL PROTECTED]>:
>
> Hi Ksenia
> passing variables to the template, and avoiding UnicodeError
>
> <?xml version="1.0" encoding='iso-8859-1'?>
> <?python
> title="атимщ"
> title=unicode(title,'utf8')
> para="Kid и buono e bravo."
> para=unicode(para,'utf8')
> ?>
[...]
> Is it ok?


The point is that you are still using *unicode* strings, and not utf
(for example) encoded strings, which don't work.

But anyhow, from Fredrik's answer I understand now why it's not a bug:

>Kid uses the standard Python I18N model (for international text,
>use either byte strings with ASCII only, or Unicode strings)

I didn't know that Python  i18n model has this logic. I should RTFM more :)

--
Ksenia

Reply via email to