Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 08B739F9E58 for ; Thu, 30 Aug 2007 12:39:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 57667-04-5 for ; Thu, 30 Aug 2007 12:39:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by postgresql.org (Postfix) with ESMTP id A5ECC9F9BD7 for ; Thu, 30 Aug 2007 12:39:27 -0300 (ADT) Received: from webmail.xs4all.nl (dovemail6.xs4all.nl [194.109.26.8]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id l7UFdPSP093331; Thu, 30 Aug 2007 17:39:25 +0200 (CEST) (envelope-from jtv@xs4all.nl) Received: from 125.24.219.40 (SquirrelMail authenticated user jtv) by webmail.xs4all.nl with HTTP; Thu, 30 Aug 2007 22:39:25 +0700 (ICT) Message-ID: <9054.125.24.219.40.1188488365.squirrel@webmail.xs4all.nl> In-Reply-To: References: Date: Thu, 30 Aug 2007 22:39:25 +0700 (ICT) Subject: Re: Problem with character encodings. From: "Jeroen T. Vermeulen" To: "Korumilli, Bala S (GE Healthcare)" Cc: pgsql-interfaces@postgresql.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/26 X-Sequence-Number: 6620 On Thu, August 30, 2007 16:29, Korumilli, Bala S (GE Healthcare) wrote: > I also tried inserting the character using its CODE. Characters 176, 186 > for code page 1252. And character 248 for code page 437 . > And I also tried all the characters from 128 to 255. For all these > characters, Postgres is giving the same error. So you also tried sending raw byte values for the UTF-8 character? For codepoint 176, I think that would be 0xc2 (194) followed by 0xb0 (176, by pure coincidence). If that failed as well then it sounds as if the database was not set up as a Unicode one after all. That's where it get system-specific and I probably can't help you with it, but it sounds as if your database may have been set up for ASCII. > Can you please eloborate on this I could not understand this sentence. > "The database doesn't expose its encoding IIRC, only its character set. > So it's possible that that should be Unicode, not UTF-8." It's only a small point, but IIRC the "encoding" given for a postgres database set up to support Unicode is normally "Unicode," not "UTF-8." Jeroen