pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Elizabeth George <g.elizabeth@teles.com>
Cc: pgsql-general@postgresql.org
Subject: Re: help
Date: Thu, 15 May 2008 13:44:50 +0200
Message-ID: <20080515114450.GA25867@svana.org> (raw)
In-Reply-To: <4E3524B7F7154D4D93ABCF5E2471224FC544@dc-india.telesindia.com>
References: <4E3524B7F7154D4D93ABCF5E2471224FC544@dc-india.telesindia.com>

On Tue, May 13, 2008 at 03:30:09PM +0530, Elizabeth George wrote:
> SET CLIENT_ENCODING TO 'UNICODE';
> copy (select 1 as F1) to E'c:\\test.out' csv QUOTE AS E'\xFE' FORCE
> QUOTE F1;
>  
>  I got error like
>  
> ERROR:  invalid byte sequence for encoding "UTF8": 0xfe
> HINT:  This error can also happen if the byte sequence does not match
> the encoding expected by the server, which is controlled by
> "client_encoding".

Right, because 0xfe is not a valid character in UTF-8. Pick something
else.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while 
> boarding. Thank you for flying nlogn airlines.

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (69+ messages)  latest in thread

Message-ID: <20080515114450.GA25867@svana.org>
Permalink:  ../20080515114450.GA25867@svana.org/
Also on:    postgresql.org/message-id/20080515114450.GA25867@svana.org

 · 

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: kleptog@svana.org, g.elizabeth@teles.com
  Subject: Re: help
  In-Reply-To: <20080515114450.GA25867@svana.org>
  References: <4E3524B7F7154D4D93ABCF5E2471224FC544@dc-india.telesindia.com> <20080515114450.GA25867@svana.org>

* 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