Remove Non-ASCII Chars Quick snippet to remove non-ascii characters from a java string: String clean = dirty.replaceAll("\\P{ASCII}+", "");