<div dir="ltr"><div><div><div>Hi again list<br><br></div>After have setup my zope site and database to use ISO-8859-1, I did some test and unfortunely it fail with javascript doing AJAX calls because the standart says that all calls must be UTF8 nevertheless the chatset in the page. <br><br></div>So now I'm changing to use UTF8, but I have another problems: the data is stored in incorrect way. <br></div><div>I tried to save "test áñ" but it's stored "test Ã¡Ã±"</div><div><br></div><div>My setup<br>-Windows 7<br></div><div>-Zope 2.13.23<br></div><div>-MS Sql server 2008<br></div><div><br></div><div><br></div>--zope.conf <br>rest-input-encoding utf-8<br>rest-output-encoding utf-8<br>default-zpublisher-encoding utf-8<br clear="all"><div><div><div><div><div><br></div><div>--python file site.py<br>encoding = "utf-8"<br><br></div><div>--html header <br><meta http-equiv="content-type" content="text/html; charset=utf-8"><br><br><br>The pages <br></div><div>* index_html (dtml-document) <br>containt the html FORM <br></div><div><br>*estado.html ( dtml-method)<br>according to a field from the FORM, it call differents pages, in this case to "agregar.html"<br></div><div><br>* agregar.html (dtml-document)<br>recive the data and call the Zsql (agrega_credencial)<br></div><div><br>* agrega_credencial (zsql method)<br> "insert into credencial (nombre) values ( N'<dtml-sqlvar credencial type="nb">')"<br><br></div>--MS SQL Server<br><div>the fields are nvarchar<br></div><div><br></div><div>--SQL Server management (admin tool)<br></div><div>here is were I see that the data is stored like "test Ã¡Ã±", <br></div><div><br><br><div>but even if I use the agrega_credencial (zsql method) using the ZMI the data is not saved correctly.<br><br></div><div>What do I need to use UTF8 in my setup? What I'm missing?<br><br></div><div><br></div> <div data-smartmail="gmail_signature">________________________________________<br>Lo bueno de vivir un dia mas<br>es saber que nos queda un dia menos de vida</div>
</div></div></div></div></div></div>