getquoted and unicode - Mailing list psycopg

From Carl S. Yestrau Jr.
Subject getquoted and unicode
Date
Msg-id AANLkTik+tq8hbnCj3ROmOLNV1DSw48o4sDoSvnxTN3R8@mail.gmail.com
Whole thread Raw
Responses Re: getquoted and unicode  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: getquoted and unicode  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
I'm currently using psycopg2.extensions.adapt without a connection
intentionally.

The following results in a: psycopg2.InterfaceError: can't encode
unicode string to latin-1

import psycopg2

psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
adapted = psycopg2.extensions.adapt(u'test')
adapted.getquoted()

Any tips greatly appreciated!

psycopg by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to use the postgresql money type?
Next
From: Karsten Hilbert
Date:
Subject: Re: getquoted and unicode