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".
Join Stack Overflow to learn, share knowledge, and build your career.
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".
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)
try to use the UTF code of the symbole(84) in your string put \x84 to write the character
Use unicode, in this instance for the upper \u00C4 and for the lower \u00E4 works.