Re: xPath in a database with LATIN1 encoding

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Jorge Silva <jorge(dot)silva93(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: xPath in a database with LATIN1 encoding
Date: 2021-04-26 13:44:11
Message-ID: df64c5a9-ceb5-c248-a3b5-d764b6cc8159@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 24.04.21 17:20, Jorge Silva wrote:
> We have a database, which is encoded with LATIN1, and we are adding some
> tables in it to store xml files with the “xml” type. After creating the
> table and populating it, we use the xPath function to retrieve some data
> from the XML, but it seems to not work properly, because it returns:

As documented at
<https://www.postgresql.org/docs/devel/datatype-xml.html#id-1.5.7.21.7>,
xpath only works if the server encoding is UTF8.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2021-04-26 16:58:01 Re: TDE in postgres
Previous Message imrankhan23 2021-04-26 11:43:24 Re: Moving PG12 binaries