Hi. I'm using MySQL and I'm getting this error:

<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte
0xe1 in position 231: ordinal not in range(128)

This error comes when instancing a SQLObject wich has a PickeCol in wich a
tuple with a unicode string with non-ASCII chars is used.

Let's say:

class X(SQLObject):
        p = PickeCol()

x = X(p=(u'xxx', u'Permite entregar trabajos prácticos'))

I've tried with and without charset=UTF8 in the connection string without
success (tables are created with InnoDB and charset UTF8).

Any ideas?

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
The world's best known word is "okay"
The second most well-known word is "Coca-Cola"


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to