Try mark_safe.

from django.utils.safestring import mark_safe

mark_safe('μ')

2010/7/12 Alessandro Ronchi <alessandro.ron...@soasi.com>

> I want django to return  μ  instead of the html enscaped form &mu; 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 possible?
> How?
>
> Thanks in advance,
> --
> Alessandro Ronchi
> http://www.soasi.com
>
> Hobby & Giochi
> http://hobbygiochi.com
> http://www.facebook.com/hobbygiochi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
and/or .pptx
http://mirblu.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to