From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: Please help - libpq API
Date: Thu, 08 Sep 2005 12:47:19 -0400
Message-ID: <10390.1126198039@sss.pgh.pa.us> (raw)
In-Reply-To: <20050908132544.GC12971@surnet.cl>
References: <77ED2BF75D59D1439F90412CC5B109742415CA8D@ie10-sahara.hiso.honeywell.com>
<20050908132544.GC12971@surnet.cl>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On Wed, Sep 07, 2005 at 11:40:57PM -0700, Pradeepkumar, Pyatalo (IE10) wrote:
>> Even if somehow if I convert wchar_t * to char * and provide it to
>> Postgres, how will it differentiate between chinese characters and normal
>> characters ??
> Please note that any string you pass from the client will be interpreted
> using the client_encoding setting. So maybe what you have to do is just
> set client_encoding to the encoding that the strings are encoded in.
I think his problem is that his data is represented in UCS2 or UCS4
(or some other fixed-width representation) and we don't support those
as client_encoding values AFAIK. He'll need to do an encoding
conversion to some representation we do support, such as UTF8.
regards, tom lane
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: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, Pradeepkumar.Pyatalo@honeywell.com, pgsql-novice@postgresql.org
Subject: Re: Please help - libpq API
In-Reply-To: <10390.1126198039@sss.pgh.pa.us>
References: <77ED2BF75D59D1439F90412CC5B109742415CA8D@ie10-sahara.hiso.honeywell.com> <20050908132544.GC12971@surnet.cl> <10390.1126198039@sss.pgh.pa.us>
* 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