You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/04/28 22:09:07 UTC

[jira] [Commented] (LANG-1120) StringUtils.stripAccents from "Ł" and "ł"

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

Benedikt Ritter commented on LANG-1120:
---------------------------------------

I can confirm that this is a bug. The following test will fail:

{code:java}
    @Test
    public void testLANG1120() throws Exception {
        assertEquals("ALOSZZCN aloszzcn", StringUtils.stripAccents("ĄŁÓŚŻŹĆŃ ąłóśżźćń"));
    }
{code}

Output is:

{code}
org.junit.ComparisonFailure: 
Expected :ALOSZZCN aloszzcn
Actual   :??�????? ??�?????
{code}

Patches welcome!

> StringUtils.stripAccents from "Ł" and "ł"
> -----------------------------------------
>
>                 Key: LANG-1120
>                 URL: https://issues.apache.org/jira/browse/LANG-1120
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.4
>         Environment: win
>            Reporter: Krzysztof Walczewski
>             Fix For: Patch Needed
>
>
> {code}
> import org.apache.commons.lang3.StringUtils;
> public class Main {
>     public static void main(String[] args) {
>         System.out.println(StringUtils.stripAccents("ĄŁÓŚŻŹĆŃ ąłóśżźćń"));
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)