pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Rory Campbell-Lange <rory@campbell-lange.net>
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:32:48 +0000
Message-ID: <87ftdta0qs.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <20200327221835.GA27613@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>

>>>>> "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.

-- 
Andrew (irc:RhodiumToad)





view thread (9+ messages)  latest in thread

Message-ID: <87ftdta0qs.fsf@news-spur.riddles.org.uk>
Permalink:  ../87ftdta0qs.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87ftdta0qs.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, rory@campbell-lange.net, 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: <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>

* 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