Обсуждение: [HACKERS] Error in XML recv function

Поиск
Список
Период
Сортировка

[HACKERS] Error in XML recv function

От
Pavel Stehule
Дата:
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
Вложения