Re: xPath in a database with LATIN1 encoding

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Holger Jakobs <holger(at)jakobs(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: xPath in a database with LATIN1 encoding
Date: 2021-04-26 10:19:03
Message-ID: 8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message adnan salam 2021-04-26 10:44:17 Re: Facing issue while upgrading from 11 ro 13.2
Previous Message deepika tekriwal 2021-04-26 07:59:20 TDE in postgres