I have a string that contains a character � I haven\'t been able to replace it correctly.
String.replace(\"�\", \"\");
doesn\'t work, d
Use the unicode escape sequence. First you'll have to find the codepoint for the character you seek to replace (let's just say it is ABCD in hex):
str = str.replaceAll("\uABCD", "");