From: | bhyuan <bhyuan(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | UTF-8 encoding problem |
Date: | 2007-08-16 06:40:28 |
Message-ID: | 20070816151739.99DF.BHYUAN@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 the client, 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
From | Date | Subject | |
---|---|---|---|
Next Message | Mikko Partio | 2007-08-16 06:42:01 | PostgreSQL clustering (shared disk) |
Previous Message | Patrick TJ McPhee | 2007-08-16 06:33:01 | Re: memory optimization |