Re: xml type and encodings

Поиск
Список
Период
Сортировка
От Florian G. Pflug
Тема Re: xml type and encodings
Дата
Msg-id 45ABF066.1090207@phlo.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
Peter Eisentraut wrote:
> Florian G. Pflug wrote:
>> Couldn't the server change the encoding declaration inside the xml to
>> the correct
>> one (the same as client_encoding) before returning the result?
> 
> The data type output function doesn't know what the client encoding is 
> or whether the data will be shipped to the client at all.  But what I'm 
> thinking is that we should remove the encoding declaration if possible.  
> At least that would be less confusing, albeit still potentially 
> incorrect if the client continues to process the document without care.

Sorry, I don't get it - how does this work for text, then? It works there
to dynamically recode the data from the database encoding to the client
encoding before sending it off to the client, no?

greetings, Florian Pflug


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Recent ecpg patch...
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Autovacuum improvements