com.google.gwt.json.client.JSONParser.parseStrict(jsonStr)
is throwing a syntax error when the json string contains non-printable/recognized Unicode characters. Hence, I am trying to remove non-printable Unicode characters in client side. Following How can I replace non-printable Unicode characters in Java?, I'm trying to implement this code in client side, but Character.getType(codePoint)
Isn't client compatible.
Is there any way to overcome this issue? Any other way to get the character type in client side? Any other suggestion on how to solve the main problem?
Many Thanks! David.
By the way, I've tried to use my_string.replaceAll("\\p{C}", "?")
code and it worked on server side but not on client side.