[Zope] Encoding of the query that zope passed to the RDBMS

Andreas Jung lists at andreas-jung.com
Mon May 9 08:02:07 EDT 2005



--On Montag, 9. Mai 2005 17:20 Uhr +0530 JV Singh <jvsing at gmail.com> wrote:

> Specifically, how do i make sure that the query that zope passes on to
> the  underlying RDBMS is in utf-8 ??
>

by *converting* it to UTF-8 from within your ZSQL method?

utf8string=unicode(somestring,sourceencoding).encode('utf8')

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050509/a05a4408/attachment.bin


More information about the Zope mailing list