getquoted and unicode

Поиск
Список
Период
Сортировка
От Carl S. Yestrau Jr.
Тема getquoted and unicode
Дата
Msg-id AANLkTik+tq8hbnCj3ROmOLNV1DSw48o4sDoSvnxTN3R8@mail.gmail.com
обсуждение исходный текст
Ответы Re: getquoted and unicode  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: getquoted and unicode  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: How to use the postgresql money type?
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: getquoted and unicode