[Usuarios Plone] UnicodeDecodeErroR

Mikel Larreategi mlarreategi at codesyntax.com
Wed Nov 13 21:39:51 UTC 2013


Yo no tocaría el sys.defaultencoding bajo ningún concepto:

http://blog.startifact.com/posts/older/changing-the-python-default-encoding-considered-harmful.html

Pregunta para Luis:

Péganos por favor el traceback completo. ¿dónde está ese texto? Tienes un
un Page Template o Python script el texto con las tildes?


Mikel


2013/11/13 Leonardo Caballero <leonardocaballero at gmail.com>

> Luis
>
> Si accedes al "Configuración del sitio  > Errores" acá
> http://localhost:8080/Plone/prefs_error_log_form allí debería parecer el
> error completo que estas reportando, es necesario analizar para saber que
> error específicamente tienes.
>
> Mas una posible opción es que habilites soporte a UTF-8 en la instancia
> Zope en tu configuracion buildout
>
> parts =
>     ...
>     instance-sitecustomize
>
> # This recipe help to enabled encoding to utf-8.
> # For options see http://pypi.python.org/pypi/collective.recipe.template
> [instance-sitecustomize]
> recipe = collective.recipe.template
> inline =
>     import sys
>     sys.setdefaultencoding('utf-8')
> output = ${instance:location}/sitecustomize.py
> mode = 644
>
> Reconstruyes el buildout y luego inicias tu instancia Zope ya deberías
> tener solventando este problema!
>
>
> 2013/11/13 Luis Feijoo <luisfe101 at gmail.com>
>
>> si efectivamente ahí esta el error, y si estoy llamando a una función
>> decode...
>>
>>
>> El 13 de noviembre de 2013 13:05, Julio Jesús León Pérez <
>> xulioxesus at gmail.com> escribió:
>>
>>> Tiene que ver con la tilde en "Educación". Ese string es unicode y al
>>> intentar pasarlo a una cadena normal, falla. Estás llamando a la función
>>> decode?
>>> El 13/11/2013 18:58, "Luis Feijoo" <luisfe101 at gmail.com> escribió:
>>>
>>>>  buenos días ploneros al abrir una sección de Plone me aparece este
>>>> error:
>>>>
>>>> UnicodeDecodeError('ascii', 'Educaci\xc3\xb3n Continua - xxx ', 7, 8,
>>>> 'ordinal not in range(128)') (Also, the following error occurred while
>>>> attempting to render the standard error message, please see the event log
>>>> for full details: ('ascii', 'Educaci\xc3\xb3n Continua - xxxx', 7, 8,
>>>> 'ordinal not in range(128)'))
>>>>
>>>> Algun comentario de porquese produce y como puedo arreglarlo?
>>>>
>>>> --
>>>> Luis
>>>>
>>>> _______________________________________________
>>>> Usuarios-Plone mailing list
>>>> Usuarios-Plone at lists.plone.org
>>>> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>>>>
>>>>
>>
>>
>> --
>> Luis
>>
>> _______________________________________________
>> Usuarios-Plone mailing list
>> Usuarios-Plone at lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>>
>>
>
>
> --
> Atentamente
>
> T.S.U. Leonardo Caballero
> Linux Counter ID = https://linuxcounter.net/user/369081.html
> Key fingerprint = 9FD2 DC71 38E7 A1D1 57F5  1D29 04DE 43BC 8A27 424A
>
> /me Corriendo Debian Wheezy y Canaina GNU/Linux 3
> /me Cree "El Conocimiento Humano le Pertenece al Mundo"
>
> _______________________________________________
> Usuarios-Plone mailing list
> Usuarios-Plone at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-usuarios-plone
>
>


-- 
Mikel Larreategi
mlarreategi at codesyntax.com

CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-usuarios-plone/attachments/20131113/32203245/attachment.html>


More information about the Usuarios-Plone mailing list