Re: PQexecPrepared() question - Mailing list pgsql-general

From Tom Lane
Subject Re: PQexecPrepared() question
Date
Msg-id 138367.1766337436@sss.pgh.pa.us
Whole thread Raw
In response to Re: PQexecPrepared() question  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: PQexecPrepared() question
List pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> It is not the same setup, in your original question you are hand writing 
> code not running a script through the ODBC driver. Best bet is the ODBC 
> driver is picking up the client(Windows) encoding and passing it to the 
> server.

It might be the other way around.  psql absolutely will try to infer
an encoding from its environment, but perhaps the ODBC driver does
not, or does it differently.

In any case, "SHOW client_encoding" in both the working and
non-working contexts would yield useful information.

            regards, tom lane



pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: PQexecPrepared() question
Next
From: Igor Korot
Date:
Subject: Re: PQexecPrepared() question