Re: JSON and unicode surrogate pairs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: JSON and unicode surrogate pairs
Date
Msg-id 27403.1370976003@sss.pgh.pa.us
Whole thread Raw
In response to Re: JSON and unicode surrogate pairs  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> As a final counter example, let me note that Postgres itself handles 
> Unicode escapes differently in UTF8 databases - in other databases it 
> only accepts Unicode escapes up to U+007f, i.e. ASCII characters.

Good point.  What if we adopt that same definition for JSON, and get rid
of the need to do explicit encoding conversion at all in the JSON code?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: fallocate / posix_fallocate for new WAL file creation (etc...)
Next
From: Josh Berkus
Date:
Subject: Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)