Guys,

Thanks for your quick answer.

@Hector : my .py files do have the right header, whereas my layout.html file
includes :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
Of course this charset is only defined at the layout level (not for each
HTML partial template)
Should I adjust this to reflect your syntax ? I'm not sure to understand how
it affects the templating engine, though.

@Anand : no, I did checkout web.py with easy_install. I'll try with git
clone.

Thanks !
Franck

On Mon, May 2, 2011 at 4:47 PM, Hector Menendez <[email protected]> wrote:

> Make sure you include this header in your .py
>
>  # -*- coding: utf-8 -*-
>
> and in your html:
>
> <meta charset="utf-8">
>
>
>
> Héctor Menéndez R.
> ------------------------------
>
>
> On Mon, May 2, 2011 at 09:43, Franck <[email protected]> wrote:
>
>> Dear all,
>>
>> First, I apologize if the question was already asked.
>>
>> Some of my HTML templates include special characters like "€". All of them
>> are UTF8-encoded.
>>
>> - In my development environment (Python 2.7, webpy 0.34), the templates
>> render fine
>> - In my production environment (Dreamhost, Python 2.5, same webpy), my
>> code goes through a bunch of utf8-decode errors
>>
>> Any idea of what could cause such a discrepancy ?
>>
>> Thanks a lot !
>> Franck
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "web.py" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/webpy?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to