commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-66) [lang] StringEscaper.escapeXml() escapes characters > 0x7f
Date Wed, 25 Jun 2008 08:14:45 GMT

    [ https://issues.apache.org/jira/browse/LANG-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607885#action_12607885
] 

Joerg Schaible commented on LANG-66:
------------------------------------

Note, that the valid charset is different for XML 1.1:
http://www.w3.org/TR/2006/REC-xml11-20060816/#charsets

Therefore escapeXml should be overloaded with something like:

{code:java}
class StringEscaper {
    String static escapeXml() {
        return escapeXml(XmlVersion.XML_1_0);
    }
}
{code}

and the real implementation should take both specs into account.

> [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.


Mime
View raw message