I need to convert a xml file to a HTML file. The encoding is not mentioned in the XML, so default it takes is UTF-8. I used XSL for converting XML to HTML. Below is the code sample
The problem is if the XML file contains any double byes characters like ¿? it throws exception
ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Invalid byte 1 of 1-byte UTF-8 sequence.'
If I mention encoding="iso-8859-1" in XML prolog, then it works fine
Is there any way to parse the XML file with doube byte characters without modifying input XML file?
Any help is really appriciated.