BUG #12845: The GB18030 encoding doesn't support Unicode characters over 0xFFFF

From: a(dot)g(dot)nienhuis(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #12845: The GB18030 encoding doesn't support Unicode characters over 0xFFFF
Date: 2015-03-09 20:51:45
Message-ID: 20150309205145.4031.32069@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 12845
Logged by: Arjen Nienhuis
Email address: a(dot)g(dot)nienhuis(at)gmail(dot)com
PostgreSQL version: 9.3.5
Operating system: Ubuntu Linux
Description:

Step to reproduce:

In psql:

arjen=> select convert_to(chr(128512), 'GB18030');

Actual output:

ERROR: character with byte sequence 0xf0 0x9f 0x98 0x80 in encoding "UTF8"
has no equivalent in encoding "GB18030"

Expected output:

convert_to
------------
\x9439fc36
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2015-03-10 21:33:47 Re: BUG #12845: The GB18030 encoding doesn't support Unicode characters over 0xFFFF
Previous Message mage 2015-03-09 09:12:42 BUG #12843: pg_dump -O inserts four unwanted lines to the end of the dump