On 15/05/07, Arnar Birgisson <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> You can include a command in the dburi that is executed upon
> connection start. I use it all the time like this:
>
> mysql://user:[EMAIL
> PROTECTED]:3306/dbname?init_command=set%20character%20set%20utf8
>
Thanks for your help! However, it still doesn't work as it should.
Instead of "???" strings, I get unicode strings which were decoded
with the wrong encoding - if I get a string s, the real string is
s.decode('latin1').encode('utf8').
(For example, I get u'\xd7\xa0\xd7\xa2\xd7\x9d' instead of
u'\u05e0\u05e2\u05dd')
I also tried Michael's methods, but they didn't have any effect -
question marks remained question marks and wrongly-encoded strings
remained wrongly-encoded strings.
Do you have any further ideas?
Thanks (to you and to Michael),
Noam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---