pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rory Campbell-Lange <rory@campbell-lange.net>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: \COPY to accept non UTF-8 chars in CHAR columns
Date: Fri, 27 Mar 2020 22:47:32 +0000
Message-ID: <20200327224732.GA28471@campbell-lange.net> (raw)
In-Reply-To: <87ftdta0qs.fsf@news-spur.riddles.org.uk>
References: <20200327153623.GA32266@sh4-5.1blu.de>
	<8922.1585323994@sss.pgh.pa.us>
	<CA+hUKG+BAtBCXaB-0SYxNiVV3_CAbHvm7sm1PJWyhJFvTi_R3A@mail.gmail.com>
	<87k135a2hd.fsf@news-spur.riddles.org.uk>
	<20200327221835.GA27613@campbell-lange.net>
	<87ftdta0qs.fsf@news-spur.riddles.org.uk>

On 27/03/20, Andrew Gierth (andrew@tao11.riddles.org.uk) wrote:
> >>>>> "Rory" == Rory Campbell-Lange <rory@campbell-lange.net> writes:
> 
>  Rory> Or:
> 
>  Rory>     iconv -f WINDOWS-1252 -t UTF-8 -c < tempfile2 > tempfile3
> 
> No. That's just a conversion of win1252 to utf8 without regard for any
> UTF8 that might already be present in the input. Any such input will end
> up double-encoded, requiring further work to fix.

My apologies. I missed the subtlety of the substitution in your perl code.





view thread (9+ messages)  latest in thread

Message-ID: <20200327224732.GA28471@campbell-lange.net>
Permalink:  ../20200327224732.GA28471@campbell-lange.net/
Also on:    postgresql.org/message-id/20200327224732.GA28471@campbell-lange.net

 · 

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: rory@campbell-lange.net, andrew@tao11.riddles.org.uk, thomas.munro@gmail.com, tgl@sss.pgh.pa.us, guru@unixarea.de
  Subject: Re: \COPY to accept non UTF-8 chars in CHAR columns
  In-Reply-To: <20200327224732.GA28471@campbell-lange.net>
  References: <20200327153623.GA32266@sh4-5.1blu.de> <8922.1585323994@sss.pgh.pa.us> <CA+hUKG+BAtBCXaB-0SYxNiVV3_CAbHvm7sm1PJWyhJFvTi_R3A@mail.gmail.com> <87k135a2hd.fsf@news-spur.riddles.org.uk> <20200327221835.GA27613@campbell-lange.net> <87ftdta0qs.fsf@news-spur.riddles.org.uk> <20200327224732.GA28471@campbell-lange.net>

* 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