| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | Igor Korot <ikorot01(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: PQexecPrepared() question |
| Date: | 2025-12-17 07:32:21 |
| Message-ID: | 9a0ce31a49f149d8d982d2b359095560655f781e.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, 2025-12-16 at 21:53 -0800, Igor Korot wrote:
> Is there some default value for client_encoding?
The default value for a client connection is whatever the parameter
"client_encoding" was set to in the PostgreSQL server configuration.
But that value can be overridden in several ways:
- explicitly by setting "client_encoding" in the connect string
- with the SQL statement SET by the client
- if the client has "client_encoding=auto", by the encoding set in
the client's environment
- by setting the PGCLIENTENCODING environment variable
Yours,
Laurenz Albe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Laurenz Albe | 2025-12-17 07:34:51 | Re: libpq simple SELECT |
| Previous Message | Igor Korot | 2025-12-17 05:53:58 | Re: PQexecPrepared() question |