pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Query the table, the table has the Chinese language to display the garbled code

Open cyongk opened this issue 7 years ago • 3 comments

Query the table, the table has the Chinese language to display the garbled code 1

cyongk avatar Jan 07 '18 14:01 cyongk

It may be related to Windows, as I am using it on OSX with Japanese Kanji without any issue. I'll check later on linux.

fpietka avatar Jan 08 '18 13:01 fpietka

I'm using the Chinese language of the Windows 10 professional x64 system. Is the character encoding used by pgcli UTF-8?

cyongk avatar Jan 08 '18 14:01 cyongk

Someone else recently reported the same issue in #1411. @cyongk : if you're still around and interested in getting this fixed, do you have a way to reproduce this bug? I don't speak nor write Chinese, so my naïve attempt did not produce anything suspicious when running in pgcli:

> create table chinese_chars (t text);
CREATE TABLE
> insert into chinese_chars (t) values ('繁体字')
INSERT 0 1
> select * from chinese_chars
+--------+
| t      |
|--------|
| 繁体字  |
+--------+
SELECT 1

I am looking for a particular insert into query that would trigger this bug.

dbaty avatar Nov 15 '23 21:11 dbaty