Re: psycopg insert into unicode problem

Federico Di Gregorio <[email protected]>
Newsgroups gmane.comp.web.zope.database
Message-ID <1130972262.5758.1.camel@localhost>
Il giorno mer, 02/11/2005 alle 12.07 +0100, [email protected]
ha scritto:
[snip]
> (azon=id, nev=name)
> The postgres database is unicode encoded. What shall I do in order to
> insert these texts into database via zope? (with psql I can insert it
> smoothly.)

Pass a utf-8 encoded string or use a version of psycopg that supports
unicode strings and pass a unicode object.
 
-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           [email protected]
  Spesso crescere ed andare a vivere da soli è l'unico modo di restare
   bambini.                                             -- Alice Fontana

_______________________________________________
Zope-DB mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope-db
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDaURmvcCgrgZGjesRAnMsAJ0VG5JhdMxku7XzaJXpJdUQfiJHkQCdGnki
ifKFK+AcP9KVaZlrlypTsAw=
=1/OV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.