[CPS-devel] UnicodeDecodeError: 'ascii' codec can't decode byte

danieltellez at yerbabuena.es danieltellez at yerbabuena.es
Sat May 12 12:00:00 CEST 2007


Hello:

I'm dealing with a portal (CPS 3.4.4 - Ubuntu Feisty Fawn) with Spanish 
and English languages. I've got portal_translations installed.

I get the next error

UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 
142: ordinal not in range(128).

when I try to post in a forum with a latin character in title, 
description, etc, like that:

                              ({'author': 'V\xedctor',
                                'creation': DateTime('2007/05/10 
12:50:12.835 GMT-4'),
                                'id': 'problemas-con-nokia-628x',
                                'locked': False,
                                'message': 'Parece ... modelo de 
m\xf3vil. Al iniciar la aplicaci\xf3n y realizar algunos pasos aparece 
una excepci\xf3n de OutOfMemory. Por lo que he visto este modelo de 
m\xf3vil tiene ....<br />Como soluci\xf3n se comenta que cambiando el 
Firmware del dispositivo se soluciona el problema. Espero que as\xed 
podr\xe1is ',
                                'parent_id': None,
                                'published': True,
                                'review_state': 'published',
                                'subject': 'Problemas con Nokia 628x'},
                               ())],

Anyone knows why?



-- 
Daniel Téllez Sabán.
Yerbabuena Software. Dpto I+D.
danieltellez at yerbabuena.es
http://www.yerbabuena.es
Tlf/Fax: 902 995 246 Móvil: 615 051 283



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.