Hi!
When I use Webhelpers to create i.e. a Submit Button the text (value,
every javascript) gets html-escaped:
<% h.submit("Löschen".decode("UTF-8"),
name = 'delete',
confirm = "Wollen sie diesen Benutzer wirklich
löschen?".decode("UTF-8")
)%>
In a template, results in:
<input name="delete" onclick="return confirm('Wollen sie diesen
Benutzer wirklich löschen?');" type="submit"
value="Löschen" />
(So 'ö' became 'ö')
This is no problem normally, but if I use the automatic
htmlfill.render fucntion of Formencode (like the '@validate'-decorator
does) it becomes double-escaped:
<input name="delete" onclick="return confirm('Wollen sie diesen
Benutzer wirklich l&#246;schen?');" type="submit"
value="L&#246;schen" />
(So 'ö' became 'L&#246;' eventually)
Has anyone spotted this (bug?). How do you circumvent it? Is it a bug?
Thanks for your help in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---