From: Trent Shipley <tshipley@deru.com>
To: pgsql-sql@postgresql.org
Subject: Re: a "catch all" type ... such a thing?
Date: Sat, 10 Sep 2005 20:54:00 -0700
Message-ID: <200509102054.00504.tshipley@deru.com> (raw)
In-Reply-To: <200509102043.31876.peter_e@gmx.net>
References: <20050908181850.G1104@ganymede.hub.org>
<200509102043.31876.peter_e@gmx.net>
On Saturday 2005-09-10 11:43, Peter Eisentraut wrote:
> Marc G. Fournier wrote:
> > Are there any data types that can hold pretty much any type of
> > character? UTF-16 isn't supported (or its missing from teh docs), and
> > UTF-8 doesn't appear to have a big enough range ...
>
> UTF-8 has exactly the same "range" as UTF-16. In any case, the UTF-8
> encoding in PostgreSQL is probably your best choice, unless you want to
> dig into the weirdness that is MULE_INTERNAL.
The 8.1 beta documentation says that UTF-8 in earlier versions of Pg only
covered the first 16 bits of Unicode. Unfortunately "pure" Unicode uses 32
bits and (according to my Unicode Demystified) needed at least 21 (?) bits to
represent all the code points available in Unicode 3.x. (I think Unicode is
now in 4.x.)
This means that the code space supported by Pg 8.0 is technically too small.
It shouldn't matter though, unless you are working with Chinese or a private
character set.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tshipley@deru.com
Subject: Re: a "catch all" type ... such a thing?
In-Reply-To: <200509102054.00504.tshipley@deru.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox