For instance, 'à' will be replaced by 'a'.
super(input);
final Token t = input.next(); if (t == null) return null; // Return a token with filtered characters. return new Token(removeAccents(t.termText()), t.startOffset(), t.endOffset(), t.type());
To replace accented characters in a String by unaccented equivalents. final StringBuffer output = new StringBuffer(); for (int i = 0; i < input.length(); i++) { switch (input.charAt(i)) { case '\u00C0" : // Ã
final StringBuffer output = new StringBuffer(); for (int i = 0; i < input.length(); i++) { switch (input.charAt(i)) { case '\u00C0" : // Ã