[Zope] DTML and ISO-8859-1

Gilberto Gil Pereira ggsfp@students.fct.unl.pt
Mon, 22 Jul 2002 21:22:15 +0100 (WEST)


Hi all...

I'm trying to pass a variable from an text field in a DTMLFile to a pytho=
n=20
method.It works as expected, except if i insert chars with an ascii code=20
bigger than 127. For example, if i insert the string "execu=E7=E3o" (i ho=
pe=20
you see it right), i get the string "execu\xe7\xe3o". I've already set th=
e=20
meta tag in the dtml file to accept charset iso-8859-1, and i've even=20
changed the encoding variable from the site.py file at \bin\lib\.
It's crucial that i get the string as inserted, because i'm using it in a=
n=20
sql query.
Can anyone please tell me how to solve this problem???

Thanks

Gil