Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfWWc-0007dE-W2 for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 15:34:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfWWc-0006tI-Dl for pgsql-odbc@arkaria.postgresql.org; Wed, 30 Apr 2014 15:34:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfWWZ-0006o6-4H for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 15:34:19 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfWWU-000072-U7 for pgsql-odbc@postgresql.org; Wed, 30 Apr 2014 15:34:18 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3C51D211C3 for ; Wed, 30 Apr 2014 11:34:13 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 30 Apr 2014 11:34:13 -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=FczZPI3ksrhh9mTQsD29uCwBTQY=; b=oqQBGf1SjSstzqM3mk56cMN4I0Fr ccRZkHT0GnaPBC7x1aVwObSV6rJyryPv0C2KuEOdxPQH0MTxQka743ukLqozPegw Konkw+52aanjd87qbmRmN48oGbxIPVY04jpkjpJdKALK2GjLcovXjz4jGFoG7heH Ss2dqejTgbDvq6g= 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=FczZPI3ksrhh9mTQsD29uC wBTQY=; b=mDCMmmApG9CU0chfWgRndXEykZrSBZjP27bJLHqHkBiQo5BKBQL6uT 8TeJhC1axTlm3rOTzYo0hZhNeO4M4lT1a4EaHuN47JiIJ7aKAWtm5bdQNGMkta2A MGxlqPN6SasvNO6u/tWVMXCWV5j9ZlBGCnFsybv6P1Zq0jt+ayv+g= X-Sasl-enc: 1KULqFOnR6x9kncRpWsZdrXFNPCFNrnJzDSwuzm4WxHq 1398872052 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id ADFEAC00003; Wed, 30 Apr 2014 11:34:12 -0400 (EDT) Message-ID: <536117F3.5060700@aklaver.com> Date: Wed, 30 Apr 2014 08:34:11 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.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> <53610446.4000901@aklaver.com> <53610A88.90501@couderc.eu> In-Reply-To: <53610A88.90501@couderc.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 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? >> 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. 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 >>> 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