Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFsl-0006iZ-7n for pgsql-odbc@arkaria.postgresql.org; Fri, 02 May 2014 16:00:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WgFsk-0000v8-KR for pgsql-odbc@arkaria.postgresql.org; Fri, 02 May 2014 16:00:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFsk-0000ue-4a for pgsql-odbc@postgresql.org; Fri, 02 May 2014 16:00:14 +0000 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFsh-0001CJ-LJ for pgsql-odbc@postgresql.org; Fri, 02 May 2014 16:00:13 +0000 Received: from [192.168.163.20] (unknown [78.234.252.95]) by smtp1-g21.free.fr (Postfix) with ESMTP id ABACA94018A; Fri, 2 May 2014 17:59:25 +0200 (CEST) Message-ID: <5363C0FF.1050409@couderc.eu> Date: Fri, 02 May 2014 17:59:59 +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 CC: Adrian Klaver Subject: Re: Transcoding problem with wine and unixodbc References: <535A4BAA.7050403@couderc.eu> In-Reply-To: <535A4BAA.7050403@couderc.eu> 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 I answer myself. Add : "ConnSettings=SET CLIENT_ENCODING to 'LATIN1' in odbc.ini Thank you, Adrian, you did put me in the good direction. On 04/25/2014 01:48 PM, 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. > For exemple <è> becomes <Ã"> (in 2 characters). > > Any hint welcome... > > -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc