I need to remove the characters '¼' and '½' from a string in Java. How can I do that?
I do not have control over the request, I have to accept what the input comes as. Basically the request string has the characters '¼' and '½', and I need to replace these with the empty string.
I tried putting it in a list and it did not work:
invalidChars.add('½');
and then search through this. Jenkins complains: unmappable character for encoding UTF-8 [INFO] 2 errors