getquoted and unicode

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