Re: Lexing with different charsets - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: Lexing with different charsets
Date
Msg-id Pine.LNX.4.44.0404132117410.4551-100000@zigo.dhs.org
Whole thread Raw
In response to Re: Lexing with different charsets  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 13 Apr 2004, Tom Lane wrote:

> We could possibly do it if we restrict to ASCII-superset character sets
> (not UTF-16 for instance), so that the string quoting boundaries can be
> found without hardwired knowledge about every character set.

It's a reasonable compromise I guess. One can still support utf-16 and
others using the new wire protocol and maybe with some escaping extension
like:
_utf16 H'a42a1121311'

where H would be a way to form a string from hexencoded bytes (or 
using the same as for bytea, or whatever). It's a problem for the future.

-- 
/Dennis Björklund



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Lexing with different charsets
Next
From: Tom Lane
Date:
Subject: Re: Lexing with different charsets