pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: xPath in a database with LATIN1 encoding
Date: Mon, 26 Apr 2021 12:19:03 +0200
Message-ID: <8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com> (raw)
In-Reply-To: <caa976c4-6070-7eb8-1570-dee06b876a58@jakobs.com>
References: <E8EDD295-7797-4EC7-9F60-96A9554CDEE6@gmail.com>
	<1707307.1619282961@sss.pgh.pa.us>
	<09A13721-516D-44B7-B8F9-5DC8A84BA62E@gmail.com>
	<caa976c4-6070-7eb8-1570-dee06b876a58@jakobs.com>

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





view thread (6+ messages)  latest in thread

Message-ID: <8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com>
Permalink:  ../8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com/
Also on:    postgresql.org/message-id/8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: xPath in a database with LATIN1 encoding
  In-Reply-To: <8c308053-9d5d-0e06-1525-1c8baf269390@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox