Can you try?

nombre_cliente = u'SECRETARÍA' 

What is your connection string? which python version? 

On Saturday, 21 September 2019 23:43:42 UTC-7, Luciano Fain wrote:
>
> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d4d2b674-00e7-472c-bf08-c72fa8d9a9c9%40googlegroups.com.

Reply via email to