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