[
https://issues.apache.org/jira/browse/LANG-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716630#action_12716630
]
Gregor B. Rosenauer commented on LANG-66:
-----------------------------------------
Unfortunately this bug is still in 2.4 and affects German Umlauts ö,ä,ü,ß,...
This is quite annoying as it escapes perfectly valid characters in my input
string which leads to a wrong display in the target (backend) application
(which does not support the entity notation).
escapeXml() should really only escape characters that are not allowed in Xml,
as advertized in the javadoc, that is <, >, ', & and "
This bug is really problematic when you use, e.g., unescapeHtml() to convert
entities and later unescapeXml() to escape Xml-reserved characters...
> [lang] StringEscaper.escapeXml() escapes characters > 0x7f
> ----------------------------------------------------------
>
> Key: LANG-66
> URL: https://issues.apache.org/jira/browse/LANG-66
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: Operating System: All
> Platform: All
> Reporter: Sandor Vroemisse
> Fix For: 3.0
>
>
> StringEscaper.escapeXml() escapes characters > 0x7f. That's both undesired and
> undocumented.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.