as i m getting utf8 errors in jinja2
thanks

  File "templates/jsearch.html", line 2, in top-level template code
    {% import 'macros.html' as widgets with context %}
  File "templates/base.html", line 113, in top-level template code
    {% block sidebar %}
  File "templates/base.html", line 114, in block "sidebar"
    {{ widgets.datasidebar() }}
  File "templates/macros.html", line 32, in template
    {{ showlist(engineleads,'Related Searches') }}
  File "templates/macros.html", line 60, in template
    {{ loop.index }}. {{ findlinkedimage(spred,16,16) }} {{ kwlink(spred) }}
  File "templates/macros.html", line 552, in template
    <a target="_blank" href="http://fotoroll.com/sp?q={{kwxx|e}}">
  File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-12:
invalid data" while reading upstream, client: 98.207.153.62, server: ,
request: "GET /search?src=tabs&q=x-files

On Sat, Feb 27, 2010 at 2:25 AM, Armin Ronacher <[email protected]
> wrote:

> Hi,
>
>
> On 27.02.2010 07:34, Paul wrote:
>
>> is it possible to do
>>
>> {% try %}
>>
>> {% except %}
>>
>> in jinja2?
>>
> No, these kind of things do not belong in templates.  Why do you need to
> catch an exception?
>
>
> Regards,
> Armin
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pocoo-libs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pocoo-libs%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pocoo-libs?hl=en.
>
>


-- 
Amazing wedding entrance viral video
http://fotoroll.com/sv?q=jk%20wedding%20entrance%20dance%20Amazing%20wedding%20video

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to