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
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.


<?xml version="1.0" encoding="windows-1250"?>
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to