Re: xml type and encodings

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, nikolay(at)samokhvalov(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: xml type and encodings
Date: 2007-01-15 17:04:02
Message-ID: 20070115170402.GA22319@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 15, 2007 at 05:47:37PM +0100, Peter Eisentraut wrote:
> Am Montag, 15. Januar 2007 17:33 schrieb Florian G. Pflug:
> > Would this mean that if the client_encoding is for example latin1, and I
> > retrieve an xml document uploaded by a client with client_encoding utf-8
> > (and thus having encoding="c" in the xml tag), that I would get a
> > document with latin1 encoding but saying that it's utf-8 in it's xml tag?
>
> That is likely to be a consequence of this proposed behaviour, but no doubt
> not a nice one.

The only real alternative is to treat xml more like bytea than text
(ie, treat the input as a stream of octets). Whether that's "nice", I
have no idea.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-01-15 17:11:05 Re: Function execution costs 'n all that
Previous Message Tom Lane 2007-01-15 17:00:39 Re: Function execution costs 'n all that