You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "vcr (JIRA)" <ji...@apache.org> on 2013/01/08 16:52:13 UTC
[jira] [Updated] (LANG-866) StringEscapeUtils.escapeHTML() does not
escape ~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [
[ https://issues.apache.org/jira/browse/LANG-866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
vcr updated LANG-866:
---------------------
Description:
i am trying to encoding the charecter's (~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ) but when i execute the below its giving the same out put rather ascii values.
String str = "~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ";
str = StringEscapeUtils.escapeJava(str);
Expected output: should encode the charecters to ascii values.
was:
i am trying to encoding the charecter's (~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ) but when i execute the below its giving the same out put rather ascii values.
String str = "~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ";
str = StringEscapeUtils.escapeJava(str);
Expected out: should encode the charecters to ascii values.
> StringEscapeUtils.escapeHTML() does not escape ~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [
> --------------------------------------------------------------------------------------------------
>
> Key: LANG-866
> URL: https://issues.apache.org/jira/browse/LANG-866
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Environment: java
> Reporter: vcr
> Fix For: 2.4
>
>
> i am trying to encoding the charecter's (~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ) but when i execute the below its giving the same out put rather ascii values.
> String str = "~ ` @ # $ % ^ & * ( ) _ - + = | ; : . , ? } { ] [ ";
> str = StringEscapeUtils.escapeJava(str);
> Expected output: should encode the charecters to ascii values.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira