pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: armand pirvu <armand.pirvu@gmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: characters converted to ??? in postgres
Date: Thu, 11 Jan 2018 17:12:05 -0500
Message-ID: <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com> (raw)
In-Reply-To: <59E42D78-E9AA-404A-9836-9A474ACFDDE3@gmail.com>
References: <59E42D78-E9AA-404A-9836-9A474ACFDDE3@gmail.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com>
Permalink:  ../49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com/
Also on:    postgresql.org/message-id/49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, armand.pirvu@gmail.com
  Subject: Re: characters converted to ??? in postgres
  In-Reply-To: <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com>
  References: <59E42D78-E9AA-404A-9836-9A474ACFDDE3@gmail.com> <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox