Hi Antonio,
The same problem bit me from time to time and most of the time it was a
result of defining accented string without u prefix
An example:
u'šđčćž' is OK
'šđčćž' is not OK
On Thursday, January 30, 2014 11:38:17 PM UTC+1, Antonio Fregoso wrote:
>
> hi all:
>
> I'm using Mako templates with python code in utf8.
>
> My template is like this:
>
>
>
>
>
>
>
>
>
>
>
>
> *<%inherit file="local:templates.master"/><%def name="title()">
> ${info['name']}</%def><div>${info['summary']}</div><div>${info['body']}</div>*
>
> but I get the following error: *UnicodeDecodeError: 'ascii' codec can't
> decode byte 0xc3 in position 78: ordinal not in range(128)*
>
> The problem is with the accented vowels. How is this possible if in my
> code I have *# - * - coding: utf-8 - * -*
>
>
> Regards
>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.