Hi, I have a custom Form that's attempting to expand the following
field.label=u'Elegant, sophisticated, discover Egypt\u2019s local customs'
in a template. The template code looks like
<div class="label">{{ field.label }}</div>
using some special debugging tricks I can determine that, immediately prior to
the expansion, the field.label value is still in unicode and has the right value.
However, when the expansion takes place I see the following in the output html
<div class="label">
Elegant, sophisticated, discover Egypt’s local customs
</div>
so it looks as though something is being silly and doing the following
1) translate to utf8 ie 'Elegant, sophisticated, discover Egypt\xe2\x80\x99s
local customs'
2) escaping \x99 as ™ (trademark char is ™ == ™)
where should I start looking to locate the problem?
--
Robin Becker
--
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.