Amy
Amy

Reputation: 23

How to decode special characters using XMLDecoder in java

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)

Upvotes: 0

Views: 308

Answers (0)

Related Questions