Java String Diacritics removeDiacriticalMarks(String string)

Here you can find the source of removeDiacriticalMarks(String string)

Description

remove Diacritical Marks

License

Open Source License

Declaration

public static String removeDiacriticalMarks(String string) 

Method Source Code

//package com.java2s;

import java.text.Normalizer;
import java.text.Normalizer.Form;

public class Main {
    public static String removeDiacriticalMarks(String string) {
        return Normalizer.normalize(string, Form.NFD).replaceAll(
                "\\p{InCombiningDiacriticalMarks}+", "");
    }/*  w w w.  j  a  v a  2 s .c  om*/
}

Related

  1. removeDiacriticals(final String s)
  2. removeDiacritics(String input)
  3. removeDiacritics(String input)
  4. removeDiacritics(String st)