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

From Tom Lane
Subject Re: PQexecPrepared() question
Date
Msg-id 2547700.1765940917@sss.pgh.pa.us
Whole thread Raw
In response to PQexecPrepared() question  (Igor Korot <ikorot01@gmail.com>)
Responses Re: PQexecPrepared() question
List pgsql-general
Igor Korot <ikorot01@gmail.com> writes:
> If I want to have strings (aka char *) as parameters fr the query,
> should I send UTF-8 strings or something else?

They should be in whatever is selected as the client_encoding
on your connection.  That goes for query strings too, and whatever
other text a client might send.

            regards, tom lane



pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: PQexecPrepared() question
Next
From: Igor Korot
Date:
Subject: Re: [GENERAL] Retrieving query results