Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOs2-0006Ta-05 for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 07:23:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfOs0-0001tl-QQ for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 07:23:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOs0-0001tf-9A for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 07:23:56 +0000 Received: from smtp1-g21.free.fr ([212.27.42.1]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfOrw-0008CD-KU for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 07:23:55 +0000 Received: from [192.168.163.33] (unknown [78.234.252.95]) by smtp1-g21.free.fr (Postfix) with ESMTP id 1804D940106 for ; Wed, 30 Apr 2014 09:23:12 +0200 (CEST) Message-ID: <5360A4FD.9050907@couderc.eu> Date: Wed, 30 Apr 2014 09:23:41 +0200 From: Pierre Couderc User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Transcoding problem with wine and unixodbc References: <535A4BAA.7050403@couderc.eu> <535AF27F.6060006@aklaver.com> In-Reply-To: <535AF27F.6060006@aklaver.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) 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/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. > 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. Or if you want to speak of my application, it is under wine in ANSI. And I do not know who is responsible for translation, normally it should be the unixodbc or psqlodbc...? -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc