Re: \COPY ... CSV with hex escapes - Mailing list pgsql-general

From Alban Hertroys
Subject Re: \COPY ... CSV with hex escapes
Date
Msg-id 03259A04-207C-4627-8C8A-A10AE174B34E@solfertje.student.utwente.nl
Whole thread Raw
In response to \COPY ... CSV with hex escapes  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: \COPY ... CSV with hex escapes  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
On 8 Jul 2010, at 4:21, Craig Ringer wrote:

> Yes, that's ancient. It is handled quite happily by \copy in csv mode,
> except that when csv mode is active, \xnn escapes do not seem to be
> processed. So I can have *either* \xnn escape processing *or* csv-style
> input processing.
>
> Anyone know of a way to get escape processing in csv mode?


And what do those hex-escaped bytes mean? Are they in text strings? AFAIK CSV doesn't contain any information about
whatencoding was used to create it, so it could be about anything; UTF-8, Win1252, ISO-8859-something, or whatever
Sybasewas using. 

I'm just saying, be careful what you're parsing there ;)

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4c359d9f286212106016419!



pgsql-general by date:

Previous
From: el dorado
Date:
Subject: Re[2]: Problems with Vista and Windows 7
Next
From: Peter Geoghegan
Date:
Subject: CREATE PROCEDURAL LANGUAGE plpythonu on windows, with EDB's 8.4.2 installer causes error