Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVhu6-006XrN-0o for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 03:08:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVhu5-009ecI-0U for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 03:08:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVhu4-009ecA-2e for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 03:08:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVhu3-0019bV-0A for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 03:08:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5BH38beB2547701; Tue, 16 Dec 2025 22:08:37 -0500 From: Tom Lane To: Igor Korot cc: "pgsql-generallists.postgresql.org" Subject: Re: PQexecPrepared() question In-reply-to: References: Comments: In-reply-to Igor Korot message dated "Tue, 16 Dec 2025 19:04:21 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2547699.1765940917.1@sss.pgh.pa.us> Date: Tue, 16 Dec 2025 22:08:37 -0500 Message-ID: <2547700.1765940917@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Igor Korot 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