PV created LANG-911:
-----------------------

             Summary: UTF8 4byte (un)escapeJava not work correctly
                 Key: LANG-911
                 URL: https://issues.apache.org/jira/browse/LANG-911
             Project: Commons Lang
          Issue Type: Bug
    Affects Versions: 3.1
         Environment: Java 1.6
            Reporter: PV


String bellsTest = "\ud83d\udc80\ud83d\udd14";
        
String value = StringEscapeUtils.escapeJava(bellsTest);
String valueTest = StringEscapeUtils.unescapeJava(value);

System.out.println(bellsTest);
System.out.println(value);
System.out.println(valueTest);

Error:
!!!  bellsTest (befor) != valueTest (after escapeJava&unescapeJava)


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

Reply via email to