How to decode special characters using XMLDecoder in java

288 Views Asked by At

My string contains special characters (eg: �tøkiligar) and when decoding it using XMLDecoder it throws ArrayIndexOutOfBoundsException. Is there anyway to change the decoding format to another format(ISO-8859-1) than UTF-8?

java.lang.ArrayIndexOutOfBoundsException: 0 at java.beans.XMLDecoder.readObject(Unknown Source)

0

There are 0 best solutions below