Re: does encrypt function support higher than basic ascii?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: does encrypt function support higher than basic ascii?
Дата
Msg-id 4B0303FA.1000105@archonet.com
обсуждение исходный текст
Ответ на does encrypt function support higher than basic ascii?  ("Naoko Reeves" <naoko@lawlogix.com>)
Ответы Re: does encrypt function support higher than basic ascii?  ("Naoko Reeves" <naoko@lawlogix.com>)
Список pgsql-general
Naoko Reeves wrote:
> Hello,
>
> I have the following statement and accent e doesn't seems to be
> decrypted correctly.
>
> select decrypt(encrypt('aéiou','foo','aes'),'foo','aes')
>
> Could you tell me if there is an option for encoding or this function
> only encrypt basic ascii?

They take bytea rather than text and return bytea too.

Does casting the result give you valid text?

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: build array of composites in SPI
Следующее
От: "Naoko Reeves"
Дата:
Сообщение: Re: does encrypt function support higher than basic ascii?