[HACKERS] Error in XML recv function

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема [HACKERS] Error in XML recv function
Дата
Msg-id CAFj8pRDt_j53xJm3UXn7XrZV0X56rMqgjpGGBkVYygX6_=iXzw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi

When I did tests of own XML import functions I found a strange error.

I successfully imported XML to PostgreSQL. This document is readable without any visual defects. But when I tested this document against any libxml2 function I found a error - 

ERROR:  could not parse XML document
DETAIL:  input conversion failed due to input error, bytes 0x88 0x3C 0x2F 0x72
line 1: switching encoding: encoder error

When I debug this document I found a inconsistency between encoding info and data. Recv correctly ensure encoding from cp1250 encoding to UTF8. But the encoding info stays without any change and shows cp1250 still. Then libxml2 functions fails.

Regards

Pavel
Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] How to read a value when it is VARATT EXTERNAL ONDISKfrom logical replication decoder
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] powerpc(32) point/polygon regression failures on Debian Jessie