Quick snippet to remove non-ascii characters from a java string:
String clean = dirty.replaceAll("\\P{ASCII}+", "");
elegant » being unusually effective and simple… do » the way.
Quick snippet to remove non-ascii characters from a java string:
String clean = dirty.replaceAll("\\P{ASCII}+", "");