Re: Character encoding in database dumps

From: <ghaverla(at)freenet(dot)edmonton(dot)ab(dot)ca>
To: "M(dot) Bastin" <marcbastin(at)mindspring(dot)com>
Cc: Lynna Landstreet <lynna(at)gallery44(dot)org>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Character encoding in database dumps
Date: 2004-06-12 00:12:18
Message-ID: Pine.A41.3.95.1040611180635.25796A-100000@fn2.freenet.edmonton.ab.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sat, 12 Jun 2004, M. Bastin wrote:

> >Does anyone have any idea
> >how I can do a database dump that keeps the character encoding intact?

[ Sorry, idle mind. :-) ]

Reading a bunch of these messages over the last while, it appears
that the database will only support a single character encoding
internally/natively. Maybe I am wrong, and maybe this will change
in the future.

But, if you need to interact in multiple character sets now, this
seems to be something which you are now doing with a front-end of
some kind. Perhaps the thing to do, is to add a field to your
tables (or make them into 2 column arrays?) involving character
data, where this new field (or 0'th array element?) stores the
character set used when the data was originally input. If a
front-end makes a query involving character data, it gets back the
character set involved and the character data. Then the front-end
has to deal with translating from one character set to another.

Just my $0.02 (CDN)
Gord

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Guerin 2004-06-12 19:02:34 Re: invalid page header
Previous Message M. Bastin 2004-06-11 22:32:08 Re: Character encoding in database dumps