Re: Implementing full UTF-8 support (aka supporting 0x00) - Mailing list pgsql-hackers

From Geoff Winkless
Subject Re: Implementing full UTF-8 support (aka supporting 0x00)
Date
Msg-id CAEzk6fd89ddBdaw6mJJgo+G-NHKQX75VGh+Ssq5dq9SsOVbrMg@mail.gmail.com
Whole thread Raw
In response to Re: Implementing full UTF-8 support (aka supporting 0x00)  (Álvaro Hernández Tortosa <aht@8kdata.com>)
Responses Re: Implementing full UTF-8 support (aka supporting 0x00)  (Álvaro Hernández Tortosa <aht@8kdata.com>)
List pgsql-hackers
On 3 August 2016 at 20:13, Álvaro Hernández Tortosa <aht@8kdata.com> wrote:
> Yet they are accepted by Postgres
> (like if Postgres would support Modified UTF-8 intentionally). The caracter
> in psql does not render as a nul but as this symbol: "삀".

Not accepted as valid utf8:

# select E'\xc0\x80';
ERROR:  invalid byte sequence for encoding "UTF8": 0xc0 0x80

You would need a "modified utf8" encoding, I think.

Geoff



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why we lost Uber as a user
Next
From: Álvaro Hernández Tortosa
Date:
Subject: Re: Implementing full UTF-8 support (aka supporting 0x00)