pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Pierre Couderc <pierre@couderc.eu>
To: pgsql-odbc@postgresql.org
Subject: Re: Transcoding problem with wine and unixodbc
Date: Wed, 30 Apr 2014 08:34:11 -0700
Message-ID: <536117F3.5060700@aklaver.com> (raw)
In-Reply-To: <53610A88.90501@couderc.eu>
References: <535A4BAA.7050403@couderc.eu>
	<535AF27F.6060006@aklaver.com>
	<5360A4FD.9050907@couderc.eu>
	<53610446.4000901@aklaver.com>
	<53610A88.90501@couderc.eu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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-FORM...

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



view thread (8+ messages)  latest in thread

Message-ID: <536117F3.5060700@aklaver.com>
Permalink:  ../536117F3.5060700@aklaver.com/
Also on:    postgresql.org/message-id/536117F3.5060700@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, pierre@couderc.eu
  Subject: Re: Transcoding problem with wine and unixodbc
  In-Reply-To: <536117F3.5060700@aklaver.com>
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox