[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=
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=
you see it right), i get the string "execu\xe7\xe3o". I've already set th=
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=
sql query.
Can anyone please tell me how to solve this problem???