Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 85951 invoked from network); 5 Jun 2009 15:02:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 15:02:20 -0000 Received: (qmail 41016 invoked by uid 500); 5 Jun 2009 15:02:32 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 40916 invoked by uid 500); 5 Jun 2009 15:02:31 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 40838 invoked by uid 99); 5 Jun 2009 15:02:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 15:02:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 15:02:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7582E234C046 for ; Fri, 5 Jun 2009 08:02:07 -0700 (PDT) Message-ID: <189108515.1244214127480.JavaMail.jira@brutus> Date: Fri, 5 Jun 2009 08:02:07 -0700 (PDT) From: "Gregor B. Rosenauer (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-66) [lang] StringEscaper.escapeXml() escapes characters > 0x7f MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-66?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1271663= 0#action_12716630 ]=20 Gregor B. Rosenauer commented on LANG-66: ----------------------------------------- Unfortunately this bug is still in 2.4 and affects German Umlauts =C3=B6,= =C3=A4,=C3=BC,=C3=9F,... 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 Xm= l, as advertized in the javadoc, that is <, >, ', & and " This bug is really problematic when you use, e.g., unescapeHtml() to conver= t 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 undesire= d and > undocumented. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.