[Zope] utf-8 values in attributes: non-escaped
Jamie Heilman
jamie@audible.transient.net
Mon, 26 May 2003 03:20:25 -0700
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