Hey,
Remember the weird characters? The function below, which is really stupid,
makes the parse work, just by rewriting the characters from the XML string
with the same ones. So, I'm now sure it is an encoding issue, and I do not
know how to fix other way. Any ideas on how to retrieve the resources in the
right encoding?
Thanks.
-------------
/**
* Removes those nasty characters from the resource
*
*/
private String removeNasty(String data) throws UnsupportedEncodingException
{
char oldChar = new String("\n").charAt(0);
char newChar = new String("\n").charAt(0);
data = data.replace(oldChar, newChar);
newChar = new String("\t").charAt(0);
oldChar = new String("\t").charAt(0);
data = data.replace(oldChar, newChar);
return data;
}