From: | Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com> |
---|---|
To: | "ciifrancesco(at)tiscali(dot)it" <ciifrancesco(at)tiscali(dot)it> |
Cc: | hannu(at)2ndquadrant(dot)com, pgsql-hackers <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-18 08:22:00 |
Message-ID: | CAP-rdTZ4cxgPzHLKakBvvTBxaWMOBFRuY4xDf6r-Ef5oL2a1uQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-ru-general pgsql-zh-general |
[ Could you please trim your citations, i.e., please don’t top-post:
https://en.wikipedia.org/wiki/Posting_style#Top-posting ]
2013/8/16 Francesco <ciifrancesco(at)tiscali(dot)it>:
> Thanks for your answer.
> Yes, the client is also UTF8:
>
> MyDB=# show
> client_encoding;
> client_encoding
> -----------------
> UTF8
> (1 row)
I guess that this is the client encoding used by psql. I suspect your
C++-program doesn’t use client encoding UTF8. What library are you
using, libpq? Did you run the psql instance (whose output you pasted)
on Windows or on some kind of UNIX-machine over SSH? Does your
problematic C++-program run on Windows or the UNIX-machine?
(The “client encoding” is not a property of the database, but of the
specific client you are using. The C++-program’s client encoding might
therefore by entirely different from the one used by psql, especially
if you don’t run them on the same machine.)
[ BTW, I think this question really doesn’t belong on -hackers, as
no-one seems to think it is a bug, nor is it a question about
PostgreSQL internals. ]
Nicolas
--
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2013-08-18 09:36:51 | Re: Feature Request on Extensions |
Previous Message | Fabien COELHO | 2013-08-18 08:15:28 | Re: [PATCH] pg_sleep(interval) |
From | Date | Subject | |
---|---|---|---|
Next Message | ciifrancesco@tiscali.it | 2013-08-21 10:56:11 | R: [pgsql-zh-general] (solved - 谢谢) Chinese in Postgres |
Previous Message | Peter Geoghegan | 2013-08-17 18:15:03 | Re: [HACKERS] Chinese in Postgres |
From | Date | Subject | |
---|---|---|---|
Next Message | ciifrancesco@tiscali.it | 2013-08-21 10:56:11 | R: [pgsql-zh-general] (solved - 谢谢) Chinese in Postgres |
Previous Message | Peter Geoghegan | 2013-08-17 18:15:03 | Re: [HACKERS] Chinese in Postgres |