Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9FE341337B83 for ; Thu, 23 Dec 2010 13:30:01 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32845-08 for ; Thu, 23 Dec 2010 17:29:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mail.postgresql.org (Postfix) with ESMTP id A9D8A1337B8C for ; Thu, 23 Dec 2010 13:29:53 -0400 (AST) Received: by wwi17 with SMTP id 17so6393509wwi.1 for ; Thu, 23 Dec 2010 09:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=Nx/qtfzMOAi4bZ5tdghGGdeIIefU2A8d+H9+xDEWs5A=; b=iwzja86ocWumRLaYzQiI/ruDykF/JpjAvSWvVZ2bahqy0g+g9BWSr/Pg5lfrErcIHQ 0DgSeDtKuKlsbNoyWxrqkwOJ3Q1dPyNFtF9VpC5TGXzJi/P4C1+ouOWESZSk50O6LkTO XjXtpq8zuvgdV/JHJS6YYCC0Ul5MZdlSrtU9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=iVdI1JdXlGUp6B9QSXybmZTyBKxGjB4tZP+s6AMZ0ZbfCmS/vm9l9ZX9l1KZHkQhBp 7La/gqFUJAQ0BYv8AJ6LiX6nMBUzkQeW+FEj3oclNczE9TMOWx+6D5XpDU0E3zl4fyCk NXTRKQN730hPsgI0xL78xpIZt6XKD7xmDs6Pc= Received: by 10.216.162.84 with SMTP id x62mr9202908wek.106.1293125391854; Thu, 23 Dec 2010 09:29:51 -0800 (PST) Received: from marco.localnet (gev44-1-78-228-108-65.fbx.proxad.net [78.228.108.65]) by mx.google.com with ESMTPS id r6sm3867155weq.44.2010.12.23.09.29.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Dec 2010 09:29:50 -0800 (PST) From: Marc Cousin To: John R Pierce Subject: Re: BUG #5801: characters not encoded properly for column names Date: Thu, 23 Dec 2010 18:29:49 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-ARCH; KDE/4.5.4; x86_64; ; ) Cc: Pavel Stehule , pgsql-bugs@postgresql.org References: <201012231018.oBNAIfdF020454@wwwmaster.postgresql.org> <201012231134.47840.cousinmarc@gmail.com> <4D138533.2080105@hogranch.com> In-Reply-To: <4D138533.2080105@hogranch.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201012231829.49400.cousinmarc@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201012/173 X-Sequence-Number: 28979 Le jeudi 23 d=C3=A9cembre 2010 18:21:55, John R Pierce a =C3=A9crit : > On 12/23/10 2:34 AM, Marc Cousin wrote: > > No, from a Linux psql client (inside a kde konsole). You can setup any > > charset in it. I have exactly the same behaviour with psql under windows > > anyway, with a chcp 1252 in the cmd console. It's not a console charset > > problem, I've tripled checked that :) > >=20 > > And anyway, this character shouldn't get into the database as UTF8, as = it > > is 1252 (hence the error message). >=20 > does client_encoding affect names ? (I'm asking because I have no idea). Yes (for the Linux server, for Windows it fails). I have exactly the same problem if I test with LATIN9 (except that the utf8= =20 error message has a different value for the bad character). >=20 > what encodings are the database clusters on the two platforms? Oh. Both are UTF-8.