I got an ” & # 39; ” in my XML file. (it is the char code for the quot in HTML)
EX :
< desc > blabla bla & # 39; bla bla la. < / desc>
When i parse it with String tmp = itemOfEvent.getFirstChild().getNodeValue() it cut my text juste before the quot.
I got a crash with URL.encode(tmp, "UTF-8")
Better idea ?
The best solution i’ve found was to replace bad char