Re: xml type and encodings

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: xml type and encodings
Дата
Msg-id 20070115170402.GA22319@svana.org
обсуждение исходный текст
Ответ на Re: xml type and encodings  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: xml type and encodings  (Peter Eisentraut <peter_e@gmx.net>)
Список 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@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Function execution costs 'n all that
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Function execution costs 'n all that