Re: getquoted and unicode

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: getquoted and unicode
Дата
Msg-id 20110123114242.GB2360@hermes.hilbert.loc
обсуждение исходный текст
Ответ на getquoted and unicode  ("Carl S. Yestrau Jr." <carl@featureblend.com>)
Ответы Re: getquoted and unicode  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Список psycopg
On Sat, Jan 22, 2011 at 11:53:23PM -0800, Carl S. Yestrau Jr. wrote:

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

That is strange because:

    adapted.adapted.encode(adapted.encoding)

works just fine.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

В списке psycopg по дате отправления:

Предыдущее
От: "Carl S. Yestrau Jr."
Дата:
Сообщение: getquoted and unicode
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: getquoted and unicode