Re: characters converted to ??? in postgres

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: armand pirvu <armand(dot)pirvu(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: characters converted to ??? in postgres
Date: 2018-01-11 22:12:05
Message-ID: 49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/11/18 16:34, armand pirvu wrote:
> On OS X:
> - case 1 fails
> testdb=# insert into jt1 values ('??') ;
> ERROR: invalid byte sequence for encoding "UTF8": 0xe2 0xa4 0x27
> Note that at paste time ≤ changed in ??

This looks like something is wrong with your libedit library. Try
running psql with the -n option. If that helps, then look into building
psql with libreadline instead. Because libedit is terrible.

> - case 2 is fine
> - echo -n '≤' |hexdump -C
> 00000000 e2 89 a4 |...|
> 00000003

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2018-01-12 01:37:41 Re: Missing WAL file after running pg_rewind
Previous Message armand pirvu 2018-01-11 21:34:16 characters converted to ??? in postgres