Android String Remove removeAccents(String string)

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

Description

remove Accents

Declaration

public static String removeAccents(String string) 

Method Source Code

//package com.java2s;
import java.text.Normalizer;

public class Main {
    public static String removeAccents(String string) {
        return string == null ? null : Normalizer.normalize(string,
                Normalizer.Form.NFD).replaceAll(
                "\\p{InCombiningDiacriticalMarks}+", "");
    }//  w  ww.ja va  2 s  . co m
}

Related

  1. removeBackslashes(String content)
  2. removeDuplicates(String[] first, String[] second)
  3. removeSpace(String str)
  4. removeSuffix(String str, String suffix)