<div dir="ltr"><div><div>After search a while, someone can confirm if I undestand it well? the problem is because it is trying to decode to "ascii" instead of "iso-8859-1"<br></div><br></div>if it's true, why is doing it? I set to use iso-8859-1 in my conf file<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-28 16:56 GMT-05:00 Miguel Beltran R. <span dir="ltr"><<a href="mailto:yourpadre@gmail.com" target="_blank">yourpadre@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi list, my system is Zope 2.11.4 with default enconding iso-8859-1 for in/out and SQL Server 2008.<br><br></div>I'm trying to fix a bad desing with a sql server database. it has a mix of encodings, traditional_spanish and modern_spanish. And some tables with both type of fields, unicode and normal (nvarchar and varchar) .<br><br></div>The new database is Latin-1 enconding (SQL_Latin1_General_CP1_CI_AI) with only varchar fields. <br><br></div>Using the ZMI if I check the "Z SQL Method" the data is displayed correctly, but using a "page template" it gives me this error<br><br><b>Expression: <StringExpr u' ${repeat/items/number}. ${items/nombre}'><br></b><br clear="all"><pre>{'container': <Folder at /control-emisiones/campos used for /control-emisiones/oficio/alta>,
 'context': <Folder at /control-emisiones/campos used for /control-emisiones/oficio/alta>,
 'default': <object object at 0x00ADC528>,
 'here': <Folder at /control-emisiones/campos used for /control-emisiones/oficio/alta>,
 'loop': {u'items': <Products.PageTemplates.Expressions.PathIterator object at 0x078877D0>},
 'nothing': None,
 'options': {'busqueda': 1, 'args': ()},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x07802530>,
 'request': <HTTPRequest, URL=<a href="http://10.28.1.2:91/control-emisiones/oficio/alta/index_html" target="_blank">http://10.28.1.2:91/control-emisiones/oficio/alta/index_html</a>>,
 'root': <Application at >,
 'template': <ZopePageTemplate at /control-emisiones/campos/campo__oficio_tipo>,
 'traverse_subpath': [],
 'user': <User 'admin'>}</pre><li>  Module zope.tales.expressions, line 263, in __call__</li>UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 10: ordinal not in range(128)
<div><div><div><div><div><div><br><br></div><div>The data transfer was made using database tools (DTWizard).<br><br></div><div>why it is happening this?<span class="HOEnZb"><font color="#888888"><br><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><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></font></span></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" 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>