Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFP7-0005cV-Uk for pgsql-odbc@arkaria.postgresql.org; Fri, 02 May 2014 15:29:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WgFP6-00081j-Sc for pgsql-odbc@arkaria.postgresql.org; Fri, 02 May 2014 15:29:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFP6-00081c-2I for pgsql-odbc@postgresql.org; Fri, 02 May 2014 15:29:36 +0000 Received: from smtp1-g21.free.fr ([212.27.42.1]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WgFOx-0000eR-Ri for pgsql-odbc@postgresql.org; Fri, 02 May 2014 15:29:35 +0000 Received: from [192.168.163.14] (unknown [78.234.252.95]) by smtp1-g21.free.fr (Postfix) with ESMTP id 1ED62940192; Fri, 2 May 2014 17:28:43 +0200 (CEST) Message-ID: <5363B9D5.4040700@couderc.eu> Date: Fri, 02 May 2014 17:29:25 +0200 From: Pierre Couderc User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Adrian Klaver , 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> <53610446.4000901@aklaver.com> <53610A88.90501@couderc.eu> <536117F3.5060700@aklaver.com> In-Reply-To: <536117F3.5060700@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 Le 30/04/2014 17:34, Adrian Klaver a écrit : > On 04/30/2014 07:36 AM, Pierre Couderc wrote: >> Thank you. I comment. > > >>> >> As expected by me, as pgAdminIII, psql prints correctly. > > Just to be clear where are you connecting from with psql? Well, I open a terminal on my amd64 debia, jessie, and I ise psql from it. > , I open a > > >>> ANSI is a general term. What is important is what character >>> set(encoding) you are actually using in your application. >>> >> LATIN1 (ISO-8859-1), > > Well that should work with the Unicode driver. My guess is there is > some sort of confusion of what the encoding is between the app - > psqlodbc - Postgres. > yes. > Is the database you are using only used by your application? > > If it is, one possible troubleshooting method would be to set > client_encoding in postgresql.conf to latin1. This will affect all > the clients connecting to your database, so use with care. For more > information see below: > > http://www.postgresql.org/docs/9.3/interactive/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-FORMAT > > > http://www.postgresql.org/docs/9.3/interactive/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED > > > No, I have many clients. I must find a way to specify that THIS Client is LATIN1. Is there not a way to specify it in a connect string ? I find notrhing in the doc. >>>> 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