When using a validator for a tag library how can I set the encoding for the xml file passed to the validator. I am using tomcat 4.0.1. Tomcat is passing to the validator: <?xml version="1.0" encoding="UTF-8"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2" xmlns:list="list" xmlns:form="form" xmlns:libra="/WEB-INF/tlds/taglib.tld" xmlns:c="http://java.sun.com/jstl/ea/core-rt"> . . . which results in something like this while parsing:
Validation error messages from tag library c_rt null: org.xml.sax.SAXParseException: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low).