Alessandro, days ago I have the same problem, with |safe the chars aren't
scaped, so I started to use mark_safe() from the view, try it, and let us
know if it works.
2010/7/13 Alessandro Ronchi
>
>
> 2010/7/12 Martin Melin
>
> 2010/7/12 Alessandro
2010/7/12 Martin Melin
> 2010/7/12 Alessandro Ronchi :
> > I want django to return μ instead of the html enscaped form in my
> > views, because I need it to return a reportlab template wich doesn't
> handle
> > the escaped version.
> > I already
2010/7/12 Alessandro Ronchi :
> I want django to return μ instead of the html enscaped form in my
> views, because I need it to return a reportlab template wich doesn't handle
> the escaped version.
> I already have an unicode template and unicode output, so I only
Try mark_safe.
from django.utils.safestring import mark_safe
mark_safe('μ')
2010/7/12 Alessandro Ronchi
> I want django to return μ instead of the html enscaped form in my
> views, because I need it to return a reportlab template wich doesn't handle
> the
I want django to return μ instead of the html enscaped form in my
views, because I need it to return a reportlab template wich doesn't handle
the escaped version.
I already have an unicode template and unicode output, so I only those
characters not to convert to their HTML version.
Is it
5 matches
Mail list logo