utf-8 values in attributes: non-escaped
Hi there, I want to use Page Templates to create an input form with utf-8 values. Im using tal:attributes statement, but all utf-chars are escaped with HTML-entities. I found the following email on list. The last statement is probably the reason for my problem. It should be possible to use page templates with utf-chars to create text input fields with utf-8 chars. The workaround would be to use textareas or even worse javascript to fill in the values. I know it is possible to use dtml, but I thought it should be possible to use page templates as well Thanks in advance for any help Si
[...] The "structure" keyword is only meaningful for TAL statements that can insert unescaped text (content, replace, and on-error). Variable definitions do not insert text, and the text inserted by the attributes statement must always be escaped (see w3c spec).
Cheers,
Evan @ 4-am
______________________________________________________________________________ UNICEF bittet um Spenden für die Kinder im Irak! Hier online an UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101
listdev@web.de wrote:
I want to use Page Templates to create an input form with utf-8 values. Im using tal:attributes statement, but all utf-chars are escaped with HTML-entities.
<form> <input name="string" tal:attributes="value string:ÂÈÍÕÜÝ" /> <input name="python" tal:attributes="value python:'\xdf\xe5\xf1\xf7\xf8\xfe'" /> </form> works for me in both 2.6.1 and CVS, though for some reason python:u'\xdf\xe5\xf1\xf7\xf8\xfe' doesn't.
I found the following email on list. The last statement is probably the reason for my problem.
its not
It should be possible to use page templates with utf-chars to create text input fields with utf-8 chars. The workaround would be to use textareas or even worse javascript to fill in the values.
What version of Zope are you using? -- Jamie Heilman http://audible.transient.net/~jamie/ "We must be born with an intuition of mortality. Before we know the words for it, before we know there are words, out we come bloodied and squalling with the knowledge that for all the compasses in the world, there's only one direction, and time is its only measure." -Rosencrantz
participants (2)
-
Jamie Heilman -
listdev@web.de