Just started using Apache Commons StringEscapeUtils
.
According to http://www.w3schools.com/tags/ref_entities.asp, Ö
should correspond to Ö. However,
System.out.println(StringEscapeUtils.unescapeHtml4("Ö"));
prints
×
Is this a bug? Or what am I missing?
version 2.5 StringEscapeUtils.unescapeHtml
prints Ö
version 3.0-beta StringEscapeUtils.unescapeHtml3
and StringEscapeUtils.unescapeHtml4
print ×
Generally I'd use the latest stable version (currently 2.5). Looks like a bug but I couldn't find anything useful in https://issues.apache.org/jira/browse/LANG