On 16 mai, 10:03, voltron <[EMAIL PROTECTED]> wrote:
> I did some poking around. This is the Pylons debug:
>
> CompileException: Could not read template using encoding of 'ascii'.
> Did you forget a magic encoding comment? in file 'D:\Projects
> \Pylons_projects\test\test\templates/standard.html' at line: 0 char: 0
> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> 2 <html>
> 3 <head>
> 4 <title>Fön</title>
> 5 <link rel="SHORTCUT ICON" href="img/favicon.ico">
>
> I tried saving the file as UTF-8, that die not help at all, the Paster
> server threw an exception :
>
> File "memory:0x128a810", line 61, in render_body
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position
> 0: ordinal
> not in range(128)
>
You may want to reads this:
http://docs.pythonweb.org/display/pylonscookbook/Using+Mako+templating+language
> Does someone have an idea on the workflow of constructing templaters
> for mako from plain HTML from designers?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---