ddarko wrote:
> pylons==0.9.7rc4
> mako==0.2.3
> 
> i got "Internal Server Error" and no traceback !
> details:
> 
> in my controller :
> 
> def test(self)
>     c.profil = model.Session.query(model.User)
>     return render('test.mak')
> 
> 
> in mako file test.mak:
> ...
> ${c.profil.count()}
> ...
> 
> 
> and it works fine, but when i send wrong query, i get ONLY
> (inappropriate traceback):
[...]
>   File "memory:0x906088c", line 66, in render_body
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
> 20: ordinal not in range(128)

I guess you've set an incorrect encoding in your database or you're 
using a legacy database that is using different encoding than you declared.

Your mako template is probably cached in memory and the traceback is 
incomplete, so it's hard to say where your incorrectly encoded value 
comes from.

Good advice from another Polish developer:
Explicitly set the encoding of your database, pylons and mako files all 
to utf-8 and don't forget then to set utf-8 as the default encoding of 
your editor.

Regards,
Wojciech Malinowski

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to