Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3E8062E0031 for ; Thu, 15 May 2008 08:45:09 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27168-03 for ; Thu, 15 May 2008 08:44:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from svana.org (svana.org [203.190.233.187]) by developer.postgresql.org (Postfix) with ESMTP id BC7BC2E002D for ; Thu, 15 May 2008 08:44:58 -0300 (ADT) Received: from kleptog by svana.org with local (Exim 4.63) (envelope-from ) id 1JwbtC-0006m6-NL; Thu, 15 May 2008 21:44:50 +1000 Date: Thu, 15 May 2008 13:44:50 +0200 From: Martijn van Oosterhout To: Elizabeth George Cc: pgsql-general@postgresql.org Subject: Re: help Message-ID: <20080515114450.GA25867@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Elizabeth George , pgsql-general@postgresql.org References: <4E3524B7F7154D4D93ABCF5E2471224FC544@dc-india.telesindia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <4E3524B7F7154D4D93ABCF5E2471224FC544@dc-india.telesindia.com> X-PGP-Key-ID: Length=1024; ID=0x6F0B424C X-PGP-Key-Fingerprint: 34A8 8EAC F902 8C8D CA72 DCC7 201E DB34 6F0B 424C User-Agent: Mutt/1.5.13 (2006-08-11) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/585 X-Sequence-Number: 132984 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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; > =20 > I got error like > =20 > 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, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > Please line up in a tree and maintain the heap invariant while=20 > boarding. Thank you for flying nlogn airlines. --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFILCIyIB7bNG8LQkwRAiDDAJ0cJhuKbDaPjIGp2MJpLqPLJa4QHgCfSpXE qdppXQ0J/hedkVZL6OBOmJ0= =vTK+ -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--