Dear Team

I have a string with an special charater on it:  'SECRETARÍA XXX'

When i try to do an insert on DB

id_encabezado = db.encabezado.insert(tipo_reg = 0,nombre_cliente =
'SECRETARÍA' )

got the following error:

<faultstring>'ascii' codec can't decode byte 0xc3 in position 942: ordinal
not in range(128)</faultstring>

I have tried:

nombre_cliente = unicode ('SECRETARÍA')

nombre_cliente = ('SECRETARÍA').encode('utf-8)

and nothing seems to work

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CANSBBCnbmpt%3Dv_%3DupnK%2BDTN-A_3W4%3DRqFT%2B8WcGPv7_hFnu6Sw%40mail.gmail.com.

Reply via email to