From: Ivo Rossacher <rossacher@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Re: UTF8 question
Date: Fri, 4 Aug 2006 23:20:24 +0200
Message-ID: <200608042320.24393.rossacher@bluewin.ch> (raw)
In-Reply-To: <BAY108-F135EE241640DF023D471C7D1500@phx.gbl>
References: <BAY108-F135EE241640DF023D471C7D1500@phx.gbl>
You can set the client encoding to latin1 to make the database convert the
strings for you. Read also chapter 20.2. Character Set Support of the server
documentation about the different options for setting the client encoding.
By the way SQL_ASCII is not a clientencoding in that sens but the lack of any
encoding at the server side (The server can not do most of the
transformations possible with other encodings). So the client is fully
responsible for the encoding (which is critical in a lot of applications,
especially when different clients have to be supported).
Regards
Ivo
Am Freitag, 4. August 2006 22.02 schrieb Abu Mushayeed:
> Hello,
>
> If I want data to come out from my DB which is UTF8 into LATIN1 or
> SQL_ASCII. How do I do it. How do I handle the "รด" characters. WIll it
> come out the same as in the DB?
>
> Thanks
> Abu
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
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: rossacher@bluewin.ch
Subject: Re: UTF8 question
In-Reply-To: <200608042320.24393.rossacher@bluewin.ch>
References: <BAY108-F135EE241640DF023D471C7D1500@phx.gbl> <200608042320.24393.rossacher@bluewin.ch>
* 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