Hi,
I have a java porgram that read an XML document from a url. here is an excerp from the XML:
<?xml version="1.0" encoding="UTF-8"?>
<items >
<item font-face="Arial" font-size="30" font-color="16777215">
<![CDATA[BON]]></item><ite
m font-face="Arial" font-size="30" font-color="16777215"><![C
DATA[* Disfruta de tus programas favoritos en WAPA Mývil en tu celular de Claro. * * Textea al 29960 * 18+ solamente * Más información
www.wapa.tv *]]>
</item>
</items>
The code that's is reading the file is the following:
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.new
Instance()
;
DocumentBuilder docBuilder = docBuilderFactory.newDocum
entBuilder
();
Document doc = docBuilder.parse("
http://65.38.219.91/29960/test/getmessages2.php"
);
but I got the follwing error when the code have latin charcter like é or á
com.sun.org.apache.xerces.
internal.i
mpl.io.Mal
formedByte
SequenceEx
ception: Invalid byte 2 of 4-byte UTF-8 sequence.
What can I do?