Re: does encrypt function support higher than basic ascii? - Mailing list pgsql-general

From Richard Huxton
Subject Re: does encrypt function support higher than basic ascii?
Date
Msg-id 4B0303FA.1000105@archonet.com
Whole thread Raw
In response to does encrypt function support higher than basic ascii?  ("Naoko Reeves" <naoko@lawlogix.com>)
Responses Re: does encrypt function support higher than basic ascii?
List 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 by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: build array of composites in SPI
Next
From: "Naoko Reeves"
Date:
Subject: Re: does encrypt function support higher than basic ascii?