Re: unicode support vs native install

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Eric J(dot) Schwarzenbach" <Eric(dot)Schwarzenbach(at)wrycan(dot)com>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: unicode support vs native install
Date: 2005-03-13 01:23:45
Message-ID: 200503130123.j2D1NjC04214@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Eric J. Schwarzenbach wrote:
> The Running & Installing PostgreSQL On Native Windows FAQ has an item on
> not being able to use unicode
>
> http://pginstaller.projects.postgresql.org/FAQ_windows.html#2.6
>
> "/Because Postgres relies on the operating system for some string
> related functions, the OS needs to support the same encoding as the one
> that is used as the database encoding. Unfortunately, Windows does not
> support some encodings that are available as server-side encodings for PG."
>
> /My understanding is the 8.0 windows installer prevents istalling utf-8
> but you can get around it with initdb if you know what your doing.
> Apparently only some things related to utf-8 data will be broken like
> sort ordering.
> /
> /Does this apply to Cygwin installs of PostgreSQL as well?

Yes, it does. The problem is that we only support UTF8 and Windows is
UTF16. If you don't care about character ordering you can initdb with
locale of C and use Unicode as your encoding.

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

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Bruce Momjian 2005-03-13 01:25:04 Re: unicode support vs native install
Previous Message Eric J. Schwarzenbach 2005-03-13 01:11:21 unicode support vs native install