[Monetdb-developers] encoding of strings returned by Python client

Gijs Molenaar gijs.molenaar at cwi.nl
Mon Dec 21 13:53:52 CET 2009


On 12/21/2009 03:35 AM, Mark Bucciarelli wrote:
> Any chance the Python client could be modified to
> return strings in Unicode instead of UTF-8?
>    
Yes it can.
> Seems like a better fit for Python; for example,
> that's how Python's sqlite3 module behaves.
>
> An alternative approach is to expose a set_encoding
> method on the connection that let's you specify the
> encoding of all text fields returned.
>
> If backward compatibility is an issue, the latter idea
> seems better even though it adds a knob.
>
> Any comments?
>
>    
I will look into this and discuss.
> (Is the maintainer of the Python adapter active even
> on this list?  I didn't see many Python-specific posts
> in the archives.)
>    

hi!

  - gijs




More information about the developers-list mailing list