Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1laymp-0006YO-Jo for pgsql-admin@arkaria.postgresql.org; Mon, 26 Apr 2021 10:48:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1laymo-0004QM-K9 for pgsql-admin@arkaria.postgresql.org; Mon, 26 Apr 2021 10:48:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1layKe-0004sz-5x for pgsql-admin@lists.postgresql.org; Mon, 26 Apr 2021 10:19:12 +0000 Received: from forward1-smtp.messagingengine.com ([66.111.4.223]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1layKa-0007gS-Db for pgsql-admin@lists.postgresql.org; Mon, 26 Apr 2021 10:19:10 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.nyi.internal (Postfix) with ESMTP id D8EFA1940A7D; Mon, 26 Apr 2021 06:19:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 26 Apr 2021 06:19:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=P2UfzdXU8s0YO2WATrJ+SQAKQPqY6+bPRurbGqHoe 7s=; b=bV+cDYlINrS6FOlYh2GTUdr3Vxq2wAQCX5YYTkZU+/bFt2rgUznX8xsNM q8Ixko7zqMvh+TlVY90Iba7TSekxM+2NOb/c1nJ0l4OUWEI5BPHw9E2/YwsITxyn aXFqIhH1xlrrgZ2x2I8WYrObvi7RRGBKgcRjelfW9zjEKE6Ufn2WzOlSQPt4RcYM FGokp7Gfryg82dG5v3fqXcNN6UKzXm8QHMgqhnmMFg6rws1zJG3MgHoEPCALPhwJ iLH1WiONv17ZXZlBCdbXl8S4vf74AlNF456JYOGSd3hpNe4f164rL6TxnN4moEvU XgSs18nhmZque4QUvKWXiMUx2NnFw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddukedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnheptddvvedtgfelffdtteet gffhiedtkeeukefhheeugeeileegkeefteeuleeileehnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucfkphepledurddugedrvddvgedruddvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: from laptop206oxuk.local (p5b0ee078.dip0.t-ipconnect.de [91.14.224.120]) by mail.messagingengine.com (Postfix) with ESMTPA id 4E64C108005F; Mon, 26 Apr 2021 06:19:05 -0400 (EDT) Subject: Re: xPath in a database with LATIN1 encoding To: Holger Jakobs , pgsql-admin@lists.postgresql.org References: <1707307.1619282961@sss.pgh.pa.us> <09A13721-516D-44B7-B8F9-5DC8A84BA62E@gmail.com> From: Peter Eisentraut Message-ID: <8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com> Date: Mon, 26 Apr 2021 12:19:03 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 25.04.21 10:44, Holger Jakobs wrote: > The point is that the XML standard dictates that every document without > an explicit encoding, must be encodied in UTF-8. So, whenever you want > to use a different encoding, this has to be stated in the XML header, as > indicated in Tom Lane's answer. If you are transmitting an XML datum from the client to the server in the text protocol, then the encoding declaration is ignored. See this documentation: https://www.postgresql.org/docs/devel/datatype-xml.html#id-1.5.7.21.7