I think your question is the same as these:
and hence the answer is also the same:
String convertedString = Normalizer .normalize(input, Normalizer.Form.NFD) .replaceAll("[^\p{ASCII}]", "");
See
Example Code:
final String input = "T??? ?? a f?ň?? ????ń?"; System.out.println( Normalizer .normalize(input, Normalizer.Form.NFD) .replaceAll("[^\p{ASCII}]", "") );
Output:
This is a funky String
2.1m questions
2.1m answers
60 comments
57.0k users