Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfVDR-0004ZY-8N for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 14:10:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfVDQ-0003Hd-KD for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 14:10:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfVDO-0003HU-Ir for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 14:10:26 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfVDG-00074z-3n for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 14:10:25 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D46DC20D36; Wed, 30 Apr 2014 10:10:15 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 30 Apr 2014 10:10:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=ehcKbpb15OtSxzXYb4FFP7UwmWk=; b=YtC66K/radNLlS58nuci4N17fnC6 qoi7Q/dMYx6TOdLSL3xfxzBJmUeXqbuiIACb2LdXTpOPO/OiOeWuXOOnMKVitZ04 P9/DxJkqGBusdBLHblF8xnoTpDsOvODIjGKO/uem1L67ZiTVLkEji+PnWAK5oQm5 NAbn9rmLsAILVws= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=ehcKbpb15OtSxzXYb4FFP7 UwmWk=; b=oAfELiJZRJW95qM4SjhfuG+1XdCGV0/aqsNRsrChEI9cn8nlWSfpSL mPtvWZ2V5OjSP0qLXS/dLV9qsjfaqGF0u2Qt48pCyprLrREmcMYCSzLKoXPvIgL6 +F2IUKay/Wz2EJlqg6p07I/Y/UGDii5I/MX46rwlupqg1M9zfG8CU= X-Sasl-enc: bcxTqm5pBz5SYEv/JZ1fD0v8Ccd9vkKo1PtGGz6eVjJv 1398867015 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 52AD5680094; Wed, 30 Apr 2014 10:10:15 -0400 (EDT) Message-ID: <53610446.4000901@aklaver.com> Date: Wed, 30 Apr 2014 07:10:14 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Pierre Couderc , pgsql-odbc@postgresql.org Subject: Re: Transcoding problem with wine and unixodbc References: <535A4BAA.7050403@couderc.eu> <535AF27F.6060006@aklaver.com> <5360A4FD.9050907@couderc.eu> In-Reply-To: <5360A4FD.9050907@couderc.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 04/30/2014 12:23 AM, Pierre Couderc wrote: > > On 04/26/2014 01:40 AM, Adrian Klaver wrote: >> On 04/25/2014 04:48 AM, Pierre Couderc wrote: >>> I am still trying to excute a MFC application (working with psqlodbc >>> under WinXP) under wine, unix psqlodbc, and unixodbc. >>> >>> My application is in ANSI, but the DB is in Unicode, so under Windows, I >>> use Postgrsql Unicode driver (which transcodes..?) without any problem. >>> Under wine, I have tried the 2 drivers (psqlodbcw.so and psqlodbca.so) >>> and with the same incorrect result. >> >> Hmm. I would have expected different results. > Me too. >> >> Are you sure your program actually picked up the change in drivers? > Yes, I am sure : I choose "PostgreSQL ANSI" (in odbc.ini) I get a good > result but the bad <Ã"> result. I change odbc.ini to a unexistant > driver : I get an application error, then I choose "PostgreSQL Unicode", > and I get the same bad <Ã"> result. >> >>> For exemple <è> becomes <Ã"> (in 2 characters). >> >> Can you get a psql connection to the database? > yes. >> >> And if so what does it show? >> > I do not know (as I do not know how to use pgsql). But I am sure that > the database is Unicode, and for exmple PGadmin III (either on the same > debian machine or on W7) reads it without problem. Once you have psql open, type the query you want: select * from some_table; where some_table is the one with the characters you are having problems with. >> Also what exactly is the encoding your client is using? >> > Mmm, I am not sure to know what is "my" Client. I suppose that the > client of the DB is psqlodbc. Well psqlodbc is more of an adapter that is passing information from your application to Postgres. > Or if you want to speak of my application, it is under wine in ANSI. ANSI is a general term. What is important is what character set(encoding) you are actually using in your application. > And I do not know who is responsible for translation, normally it should > be the unixodbc or psqlodbc...? > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc