I have a program that reads in a file. In this file there are some crazy chars that I have never seen before. The purpose of this file is to parse certain information into SQL statements.
When I get to this line in the file "read “Details for …(the name of the title”" (notice the horizontal ellipses and the right/left quotes), it outputs into this:
�Details for �(the name of the title�
I just want to replace the chars that are right with chars defined by me. I have tried:
st = st.replaceAll("…","...");
st = st.replaceAll("\u2026","...");
This is how i read the file:
FileInputStream file = new FileInputStream(filePath);
DataInputStream in = new DataInputStream(file);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
And other things that I cant even remember. How can I do this seemingly simple task?