com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:Invalid byte 2 of 2-byteCategory: Web Services 2011-08-17 22:04 11022 people read reviews (3) favorite reports Bytexmlencodingcom.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:Invalid byte 2 of 2-byte UTF-8 Sequence.
Analysis, the main reason for this problem is that the encoding declared in the XML file is inconsistent with the encoding of the XML file itself when it is saved. For example, your statement is
<?xml version="1.0" encoding="UTF-8"?>
However, it is saved in ANSI format, although it does not appear garbled, but the XML parser is unresolved.
The workaround is to reset the encoding and declaration of the XML file when it is saved.
Com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:Invalid byte 2 of 2-byte