Here you can find the source of stripAccents(String input)
Parameter | Description |
---|---|
input | string you want to remove accents |
public static String stripAccents(String input)
//package com.java2s; //License from project: Open Source License import java.text.Normalizer; public class Main { /**//from www .j a v a 2s . c o m * Remove all accents of a string * @param input string you want to remove accents */ public static String stripAccents(String input) { return Normalizer.normalize(input, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); } }