Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DF74B1337BDB for ; Fri, 21 Jan 2011 17:16:38 -0400 (AST) 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 68461-01-2 for ; Fri, 21 Jan 2011 21:16:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id F38DD1337D15 for ; Fri, 21 Jan 2011 17:13:30 -0400 (AST) Received: by pzk35 with SMTP id 35so363906pzk.19 for ; Fri, 21 Jan 2011 13:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PCcnb2gpJKn6fPdZaIc9GGSD3w8DT8Tkhie6jY6vNTo=; b=QtcvaJAya46R2ROmw2jb36WfJtXvwGDppTn4SJ1NWdi3evXmTGeHOO/PqWQ62753wF mkaM23Ymsz+elMwsceApaOvI9A97Ttddc392U53NbHZpztVm1XHMb42RHq0dQmdM6vRi l15JorD0WcjOXR+vX7JzvGxFnh7NAyuiTCpvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Z0oO27kkaCj0za3D6JrYmGDkLDGGs8pHDTZLHw5SXjM2mVmgl92gqUsxIM42xnLfIX XBnHtNeBEebEdytbaFKK9FW14r6B0Mq3LxYJW8OYMWuL8PxdBgA8HygmS8QCpgkh8hUP H57BmC1E4oBs8iW89XTEslKTqtW6V8XPAhbis= Received: by 10.142.82.3 with SMTP id f3mr1201375wfb.89.1295644410465; Fri, 21 Jan 2011 13:13:30 -0800 (PST) Received: from [192.168.0.107] (c-24-17-179-185.hsd1.wa.comcast.net [24.17.179.185]) by mx.google.com with ESMTPS id e14sm13175592wfg.8.2011.01.21.13.13.28 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 13:13:29 -0800 (PST) Message-ID: <4D39F6F8.3080700@gmail.com> Date: Fri, 21 Jan 2011 13:13:28 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Kim Mortensen CC: Hiroshi Saito , pgsql-odbc@postgresql.org Subject: Re: problem connecting via ODBC when unicode (now in correct forum.). References: <201101210806.06568.adrian.klaver@gmail.com> <201101210833.49544.adrian.klaver@gmail.com> <4D39CD82.6070101@winpg.jp> <4D39EC6A.6060304@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201101/15 X-Sequence-Number: 10562 On 01/21/2011 12:35 PM, Kim Mortensen wrote: > Adrian, > > Tje letters you are typing are from Danish, but any will do. > > Now im working abit from memory, but when the databse is build, initdb > is using UNICODE as encoding, "C" for locale, so it should be > independant of the locale settings. I believe the problem, as Hiroshi Saito pointed out, is that the client encoding is being set on Windows before the connection is attempted and that it is picking the wrong one. Per his post pgAdmin and JDBC are probably just starting with UTF8 and that is why they succeed. At this point I don't know how to get around that. > > Best Regards > Kim Mortensen -- Adrian Klaver adrian.klaver@gmail.com