I'm not able to trim the unicode control character \u0085
in Java. How can you do this?
String str = "\u0000\u001f\u0085 hi \n"
PrintStream out = new PrintStream(System.out, true, "UTF-8");
out.println(teststr);
String st = teststr.replaceAll("\\p{Cntrl}", "");
out.println(st);
The character \u0085
gets printed as ? and doesn't seem to get replaced.