Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DC0B71337B5C for ; Fri, 21 Jan 2011 17:36:56 -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 03394-02 for ; Fri, 21 Jan 2011 21:36:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by mail.postgresql.org (Postfix) with ESMTP id 73D0B1337B4A for ; Fri, 21 Jan 2011 17:36:49 -0400 (AST) Received: by pxi15 with SMTP id 15so365995pxi.19 for ; Fri, 21 Jan 2011 13:36:49 -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=3Ao00yyvoQnrCJ71JX2TV6nvorNAZAfFhvMhB4A3Bys=; b=jVy1TUWBgZyqlEyuOfaQkr+ZK1teEd3ljlnR2N+PhgI3ZwNL7XHEGzk8QD66pZXHzE yPNAll4NkXcVJlQCNtGJzAY2jcT9V8kDK5nfrJLbTCoUfiNTVNodi4K11fF2Qygu6f1v nlWIm4E7Y3N6oeMu6gSPDIjRU1OLhfvabGrWo= 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=eSFbV7FRQrEJUlbpIFk6zBA/iD1tZIbKOr4L6ESvcPxF800C1PTXuF9An5ESkZsbPe Pa60UbIucTN6k3tdrXqcZLWbwmMAq5L0hoswyvnxb1+7uNCa8lpvHxNVZXUHGTeHIZz9 9NiMvw/rlmoAwQAFbGAKDUZsj5DWILtCbeV64= Received: by 10.142.165.3 with SMTP id n3mr144930wfe.210.1295645809018; Fri, 21 Jan 2011 13:36:49 -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 e14sm13194461wfg.20.2011.01.21.13.36.48 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 13:36:48 -0800 (PST) Message-ID: <4D39FC6F.5090303@gmail.com> Date: Fri, 21 Jan 2011 13:36:47 -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> <4D39F6F8.3080700@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/17 X-Sequence-Number: 10564 On 01/21/2011 01:28 PM, Kim Mortensen wrote: > But the connector is configures individually and I specify the encoding > by the configuration string sat in the JDBC driver. this string sets the > encoding, but apparently it does not work. > It is a chicken and egg problem. The problem is that to set the encoding you have to connect but to connect the client needs to be using the correct encoding. In Windows, it seems the ODBC driver is sending the connection string in the wrong encoding and you never actually connect. -- Adrian Klaver adrian.klaver@gmail.com