From: | Hannu Krosing <hannu(at)2ndQuadrant(dot)com> |
---|---|
To: | "ciifrancesco(at)tiscali(dot)it" <ciifrancesco(at)tiscali(dot)it> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-zh-general(at)postgresql(dot)org, pgsql-ru-general(at)postgresql(dot)org |
Subject: | Re: Chinese in Postgres |
Date: | 2013-08-16 12:16:24 |
Message-ID: | 520E1818.4000403@2ndQuadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-ru-general pgsql-zh-general |
On 08/16/2013 01:25 PM, ciifrancesco(at)tiscali(dot)it wrote:
> Hello all,
> before writing this message, I wrote about this in other mailing lists
> without solving my problem.
> Maybe some of you can help me.
>
> I have problems with a DB in postgres, when i try to insert Chinese
> strings in utf-8 format.
> If I insert the data using a C++ program I have empty squares, in this
> format: ��� (3 empty squares for each chinese ideogram as that is the
> length in utf-8)
> If the string contains chinese mixed with ASCII, the ASCII is OK but
> the Chinese is broken:
> 漢語1-3漢語 --> ������1-3������
Can you cehck that your client encoding is also UTF8
hannu=# show client_encoding ;
client_encoding
-----------------
UTF8
(1 row)
Cheers
--
Hannu Krosing
PostgreSQL Consultant
Performance, Scalability and High Availability
2ndQuadrant Nordic OÜ
From | Date | Subject | |
---|---|---|---|
Next Message | ciifrancesco@tiscali.it | 2013-08-16 12:40:09 | R: Re: [HACKERS] Chinese in Postgres |
Previous Message | ciifrancesco@tiscali.it | 2013-08-16 11:25:31 | Chinese in Postgres |
From | Date | Subject | |
---|---|---|---|
Next Message | ciifrancesco@tiscali.it | 2013-08-16 12:40:09 | R: Re: [HACKERS] Chinese in Postgres |
Previous Message | ciifrancesco@tiscali.it | 2013-08-16 11:25:31 | Chinese in Postgres |
From | Date | Subject | |
---|---|---|---|
Next Message | ciifrancesco@tiscali.it | 2013-08-16 12:40:09 | R: Re: [HACKERS] Chinese in Postgres |
Previous Message | ciifrancesco@tiscali.it | 2013-08-16 11:25:31 | Chinese in Postgres |