That’s the Unicode Replacement Character, \uFFFD. (info)
Something like this should work:
String strImport = "For some reason my �double quotes� were lost.";
strImport = strImport.replaceAll("\uFFFD", "\"");
More Related Contents:
- How to determine if a String contains invalid encoded characters
- How to convert Strings to and from UTF8 byte arrays in Java
- How to convert a string with Unicode encoding to a string of letters
- What is the Java’s internal represention for String? Modified UTF-8? UTF-16?
- How can I iterate through the unicode codepoints of a Java String?
- How can I replace non-printable Unicode characters in Java?
- Java FileReader encoding issue
- Binary to text in Java
- Creating Unicode character from its number
- Easy way to remove accents from a Unicode string? [duplicate]
- Can a valid Unicode string contain FFFF? Is Java/CharacterIterator broken?
- How can I safely encode a string in Java to use as a filename?
- How does Java store UTF-16 characters in its 16-bit char type?
- How to properly trim whitespaces from a string in Java?
- Byte and char conversion in Java
- How to use Special Chars in Java/Eclipse
- Unable to print russian characters
- Java Encode file to Base64 string To match with other encoded string
- Why does byteArray have a length of 22 instead of 20?
- How to correctly compute the length of a String in Java?
- Need the words between the ” – ” ONLY string splitting [duplicate]
- Converting Secret Key into a String and Vice Versa
- formatting a string to a currency format in jasper report
- How to check if a string starts with one of several prefixes?
- java.lang.NumberFormatException: empty String
- Java: Why can String equality be proven with ==?
- How can I read comma separated values from a text file in Java?
- Java: Get last element after split
- How to force a jar to use(or the jvm that jar runs in) utf-8 instead of the system’s default encoding
- Replacing single ‘\’ with ‘\\’ in Java