There is a String in Android Java. How do I change it to another given encoding and replace HTML-entities such as & with &?
&
Thi
You can add denpendency:
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.3'
And use StringEscapeUtils.unescapeHtml4(s), then get the result.
StringEscapeUtils.unescapeHtml4(s)