Обсуждение: invalid byte sequence for encoding "UTF8": 0x00

Поиск
Список
Период
Сортировка

invalid byte sequence for encoding "UTF8": 0x00

От
pawel_kukawski
Дата:
Hi,

Is there any way I can store NULL character (\u0000) in string ?

Or there is only one option that I have change every text field to bytea.

Regards,
Paweł

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/invalid-byte-sequence-for-encoding-UTF8-0x00-tp5007173p5007173.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Re: invalid byte sequence for encoding "UTF8": 0x00

От
hubert depesz lubaczewski
Дата:
On Sat, Nov 19, 2011 at 09:32:12AM -0800, pawel_kukawski wrote:
> Is there any way I can store NULL character (\u0000) in string ?
>
> Or there is only one option that I have change every text field to bytea.

correct question is: why do you want to store \u0000 in text field?

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/