I am parsing the next file that is encoded as Windows-1252:

<?xml version="1.0" ?>
<test>ä</test>

The implicit XML encoding is UTF-8, therefore it is correct that I get a
parsing error, but SAXParseException::getLineNumber and
SAXParseException::getColumnNumber return wrong values:

line 1, column 23: invalid byte '<' at position 2 of a 3-byte sequence

IMHO the line number should be 2, the column number - 8 (position of the
character '<') or 7 (position of the character 'ä').

-- 
View this message in context: 
http://www.nabble.com/SAXParseException%2C-wrong-line-and-column-numbers-tp25472166p25472166.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to