Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-285

Wish : method unaccent

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • lang.*
    • None

    Description

      I would like to add a method that replace accented caracter by unaccented one. For example, with the input String "L'été où j'ai dû aller à l'île d'Anticosti commenca tôt", the method would return "L'ete ou j'ai du aller à l'ile d'Anticosti commenca tot".

      I suggest to call that method unaccent and to add it in StringUtils.

      If we cannot covert all case, the first version could only covert iso-8859-1.

      If you are willing to go forward with that idea, I am willing to contribute a patch.

      Attachments

        1. StringUtilsAccents-small.patch
          11 kB
          Cédrik LIME
        2. StringUtilsAccents.patch
          14 kB
          Cédrik LIME
        3. LANG-285.patch
          3 kB
          Henri Yandell
        4. LANG-285-unaccent-using-Collator.patch
          7 kB
          Niall Pemberton
        5. MapBuilder.java
          8 kB
          Guillaume Coté
        6. unaccent.patch
          38 kB
          Guillaume Coté
        7. UnnacentMap.java
          17 kB
          Guillaume Coté

        Activity

          People

            Unassigned Unassigned
            cote@computer.org Guillaume Coté
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: