private void complainAboutNonAscii() throws SAXException { String encoding = null; if (encodingDeclarationHandler != null) { encoding = encodingDeclarationHandler.getCharacterEncoding(); } if (encoding == null) { err("The character encoding of the document was not explicit but the document contains non-ASCII."); } else { err("No explicit character encoding declaration has been seen yet (assumed \u201C" + encoding + "\u201D) but the document contains non-ASCII."); } }