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
<?xml version="1.0" encoding="windows-1250"?>
<enprimeur>
	    <vino>
	        <remark>ò</remark>
		</vino>
</enprimeur>
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to