How do I remove strange and unwanted Unicode characters (such as a black diamond with question mark) from a String?
Updated:
Please tell me the Unicode chara
To delete non-Latin symbols from the string I use the following code:
String s = "小米体验版 latin string 01234567890"; s = s.replaceAll("[^\\x00-\\x7F]", "");
The output string will be: " latin string 01234567890"