Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 71E08B5DBDF for ; Wed, 12 Oct 2011 16:24:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 00689-07 for ; Wed, 12 Oct 2011 19:24:35 +0000 (UTC) X-Greylist: delayed 00:15:28.110919 by SQLgrey-1.8.0-rc2 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 57A85B5DBCA for ; Wed, 12 Oct 2011 16:24:35 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RE4Ar-0006Za-Pw for pgsql-bugs@postgresql.org; Wed, 12 Oct 2011 12:09:05 -0700 Date: Wed, 12 Oct 2011 12:09:05 -0700 (PDT) From: bushcraftrelf To: pgsql-bugs@postgresql.org Message-ID: <1318446545797-4896599.post@n5.nabble.com> In-Reply-To: <4E9577B30200002500041EB4@gw.wicourts.gov> References: <201110100820.p9A8KWOu064380@wwwmaster.postgresql.org> <4E9577B30200002500041EB4@gw.wicourts.gov> Subject: Re: BUG #6246: character encoding for 64 bit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201110/104 X-Sequence-Number: 31374 Kevin Grittner wrote: > > > WIN1512 supports characters which are not supported by LATIN1. If > you sent such characters to the database, what would you expect to > happen? > > -Kevin > Hi Kevin, I forgot to mention a few things. One is that the problem only arises in postgres 9.1 - I can create exactly the same databases and tables in 9.0 and have no problems accessing them using psql 9.0. Also, I set the client_encoding to "LATIN1" and so there should have been no problem with a mismatch in encoding. I have subsequently found that if I use psql 9.0 on the postgresql 9.1 server, then I can access the table as normal. The main difference I have found (if it's any use) is that when I first open psql 9.0, the \encoding is always set at UTF8 until I change it (which postgres can convert to LATIN1). When I first open psql 9.1, the \encoding is set at WIN1252 before I change it. WIN1252 cannot be converted to LATIN1. For now, I have reverted to using Postgres 9.0, as I have no problems with that version. -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-6246-character-encoding-for-64-bit-tp4888531p4896599.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.