UTF-8 encoding problem - Mailing list pgsql-general

From bhyuan
Subject UTF-8 encoding problem
Date
Msg-id 20070816151739.99DF.BHYUAN@gmail.com
Whole thread Raw
Responses Re: UTF-8 encoding problem
List pgsql-general
hi

I use UTF-8 as server character encoding,
and use sjis as client character encoding.
For some reason, some none sjis encoding character was insert into the database.
WHEN I use
set client_encoding='SJIS
select * from xxx
I got such error message
Native Error: ERROR: character 0xc2a0 of encoding "UTF8" has no equivalent in "SJIS"

I just want to ignore the none-sjis encoding character and go on without any
errors.
I use postgresql8.1, it seems that the postgresql shoud report error at the case
-----------------------------
If the conversion of a particular character is not possible ? suppose you chose EUC_JP for the server and LATIN1 for
theclient, then some Japanese characters do not have a representation in LATIN1 ? then an error is reported.  
-----------------------------

Can I ignore the error message by confiing the config file?

Thanks for any idea.

bhyuan


pgsql-general by date:

Previous
From: "Mikko Partio"
Date:
Subject: PostgreSQL clustering (shared disk)
Next
From: Hannes Dorbath
Date:
Subject: Re: PostgreSQL clustering (shared disk)