From: John DeSoi <desoi@pgedit.com>
To: Abu Mushayeed <amushayeed@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Other Characterset to UTF8
Date: Thu, 20 Jul 2006 21:00:09 -0400
Message-ID: <2DA88E8B-72D7-4430-AC84-4976A40BBB66@pgedit.com> (raw)
In-Reply-To: <BAY108-F292D7506280864454B70A9D1610@phx.gbl>
References: <BAY108-F292D7506280864454B70A9D1610@phx.gbl>
On Jul 20, 2006, at 5:54 PM, Abu Mushayeed wrote:
> 1. set client_encoding = 'LATIN1';
> 2. COPY <table_name> FROM '<dir_path/file_name' with NULL as ''
>
> The data gets into the database. The datbase has some inbuilt
> functions that translates the data from LATIN1 to UTF8.
>
> The question is it works but is this correct?
Yes, it is correct assuming the data in the file is really latin1 :).
You tell PostgreSQL what character set you are using on the client
side and it takes care of converting it to the encoding used for the
database.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: desoi@pgedit.com, amushayeed@hotmail.com
Subject: Re: Other Characterset to UTF8
In-Reply-To: <2DA88E8B-72D7-4430-AC84-4976A40BBB66@pgedit.com>
References: <BAY108-F292D7506280864454B70A9D1610@phx.gbl> <2DA88E8B-72D7-4430-AC84-4976A40BBB66@pgedit.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