--python file site.py
encoding = "utf-8"
--html header
<meta http-equiv="content-type" content="text/html; charset=utf-8">
The pages
* index_html (dtml-document)
containt the html FORM
*estado.html ( dtml-method)
according to a field from the FORM, it call differents pages, in this case to "agregar.html"
* agregar.html (dtml-document)
recive the data and call the Zsql (agrega_credencial)
* agrega_credencial (zsql method)
"insert into credencial (nombre) values ( N'<dtml-sqlvar credencial type="nb">')"
--MS SQL Server
the fields are nvarchar
--SQL Server management (admin tool)
here is were I see that the data is stored like "test áñ",
but even if I use the agrega_credencial (zsql method) using the ZMI the data is not saved correctly.
What do I need to use UTF8 in my setup? What I'm missing?
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida