Re: encoding again

From: Kathy Zhu <Kathy(dot)Zhu(at)sun(dot)com>
To: Kathy(dot)Zhu(at)sun(dot)com, peter_e(at)gmx(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: encoding again
Date: 2003-09-10 00:13:13
Message-ID: 200309100013.h8A0DGc13167@amon.Central.Sun.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your reply !!

I am using 7.3.1.

3) to be more specific about data change/loss after conversion

input data in unicode with Client_encoding set to UNICODE
logging-threshold=\u65e5\u5fd7\u9608\u503c
polling_setting_error=\u8bbe\u7f6e\u8f6e\u8be2\u95f4\u9694\u65f6\u51fa\u9519

retrieved data with Client_encoding change to EUC_CN
logging-threshold=\uFFFD\uFFFD\u05BE\uFFFD\uFFFD\u05B5
polling_setting_error=\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u046F\uFFFD\uFFFD\uFF
FD\u02B1\uFFFD\uFFFD

thanks,
kathy

> X-Original-To: pgsql-general-postgresql(dot)org(at)localhost(dot)postgresql(dot)org
> Date: Wed, 10 Sep 2003 00:57:30 +0200 (CEST)
> From: Peter Eisentraut <peter_e(at)gmx(dot)net>
> X-X-Sender: peter(at)peter(dot)localdomain
> To: Kathy Zhu <Kathy(dot)Zhu(at)sun(dot)com>
> Cc: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] encoding again
> X-Virus-Scanned: by amavisd-new at postgresql.org
> X-Mailing-List: pgsql-general
>
> Kathy Zhu writes:
>
> > 1) the sorting is based on unicode value, not EUC_CN encoding value.
>
> The sorting is always based on the server encoding. There is no way to
> change that.
>
> > 2) I wrote the ResultSet to a file by using OutputStreamWriter(file,
"EUC_CN"). The
> > file is not readable from the browser with any charset setting.
>
> That is a problem in whatever client interface that is (Java?) or your
> browser.
>
> > 3) Changing client_encoding from UNICODE to EUC_CN actually alter/loose the
data if
> > you compare the above "select *" statements.
>
> You're going to have to be a bit more specific, because many of us can't
> identify the characters or see what is wrong with them.
>
> Also, try a more recent PostgreSQL version, such as 7.3.4.
>
> --
> Peter Eisentraut peter_e(at)gmx(dot)net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera Munoz 2003-09-10 00:17:30 Re: Find overlapping time intervals, how?
Previous Message Bruno BAGUETTE 2003-09-09 23:47:20 How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?