Re: UTF8 or Unicode - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: UTF8 or Unicode
Date
Msg-id 200502220308.j1M38PV03238@candle.pha.pa.us
Whole thread Raw
In response to Re: UTF8 or Unicode  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: UTF8 or Unicode  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I think we just need to _favor_ UTF8.
> 
> I agree.
> 
> > The question is where are we
> > favoring Unicode rather than UTF8?
> 
> It's the canonical name of the encoding, both in the code and the docs.
> 
> regression=# create database e encoding 'utf-8';
> CREATE DATABASE
> regression=# \l
>          List of databases
>     Name    |  Owner   | Encoding  
> ------------+----------+-----------
>  e          | postgres | UNICODE
>  regression | postgres | SQL_ASCII
>  template0  | postgres | SQL_ASCII
>  template1  | postgres | SQL_ASCII
> (5 rows)
> 
> As soon as we decide whether the canonical name is "UTF8" or "UTF-8"
> ;-) we can fix it.

I checked and it looks like "UTF-8" is the correct usage:
http://www.unicode.org/glossary/

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Design notes for BufMgrLock rewrite
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32