Re: xml type and encodings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: xml type and encodings
Дата
Msg-id 200701152140.28845.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: xml type and encodings  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
> The only real alternative is to treat xml more like bytea than text
> (ie, treat the input as a stream of octets).

bytea isn't "treated" any different than other data types.  You just 
have to take care in the client that you escape every byte greater than 
127.  The same option is available to you in xml, if you escape all 
suspicious characters using entities.  Then, the encoding declaration 
is immaterial anyway.  (Unless you allow UTF-16 into the picture, but 
let's say we exclude that implicitly.)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Function execution costs 'n all that
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: xml type and encodings