How to remove "¼" and "½" from a string
<p>I need to remove the characters '¼' and '½' from a string in Java. How can I do that?</p>

<p>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.</p>

<p>I tried putting it in a list and it did not work:</p>

<p>invalidChars.add('½');</p>

<p>and then search through this. Jenkins complains: unmappable character for encoding UTF-8 [INFO] 2 errors</p>
