Sven Niehus Sven Niehus - 3 years ago 181
Java Question

How to make ä to ä in Java?

How can i replace "&A/auml;" to "Ä/ä" in an java string on android?

I tried [this solution][1], but it didn't work, because Eclipse says that "The import org.apache.commons.lang cannot be resolved".

Answer Source

I forgot to download the jar and put it into my libs folder. You can download it here. After you've successfully downloaded it you can import the StringEscapeUtils it with

import org.apache.commons.lang3.StringEscapeUtils;

To use it simply write this:

StringEscapeUtils.unescapeHtml4(YourStringGoesHere)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download