Sunday, January 29, 2012

Re: TinyMCE, safe tag and wrong conversion of entities

unicode?

On 25 January 2012 07:43, jurgen <juergenwaser@gmail.com> wrote:
In my admin interface, I can create a database entry which contains
HTML using TinyMCE. I do this to create publication entries for my
website. In the database, a publication entry stores entities using
numeric encoding. To render a list of publications, I use the safe tag
in the django template. The result looks correctly like this:
http://visdom.at/publications/

All entities are correctly shown.

I use the same technique in another template to render only some of
the publications for a particular person:
http://www.visdom.at/jwaser

However, here the ü's and ö's are messed up. What puzzles me even
more, is that the entities for the name Ribičić are correctly
displayed.

What am I doing wrong?

Thx for any help,
Jürgen

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


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

No comments:

Post a Comment