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

From Igor Korot
Subject Re: PQexecPrepared() question
Date
Msg-id CA+FnnTxO6kam9=mRonvsnUA1OxJxdDdQsj+ubdgFNNb9b3WMPQ@mail.gmail.com
Whole thread Raw
In response to Re: PQexecPrepared() question  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PQexecPrepared() question
List pgsql-general
Thx, Tom..

Is there some default value for client_encoding?

Thank you.

On Tue, Dec 16, 2025 at 7:08 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> 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: libpq simple SELECT
Next
From: Laurenz Albe
Date:
Subject: Re: PQexecPrepared() question