I have an implementation of org.xml.sax.helpers.DefaultHandler, it works fine except when it comes something like this:
<NAME>Jiří Bárta</NAME>
The character method is overriden as:
@Override
public void characters(char[] ch, int start, int length) throws SAXException {
if (currentElement) {
currentValue = new String(ch, start, length);
currentElement = false;
}
}
But the char array that arrives to the method has only 'Ji', skipping the rest of the string. I have another method to convert those entities to UTF-8, but I never get them, so I can't convert anything.