I have a simple java program that reads a line from file and writes it to another file.
My source file has words like: it's
but the destination file is having words like it�s
.
I am using BufferedReader br = new BufferedReader(new FileReader(inputFile));
to read the source file and PrintWriter writer = new PrintWriter(resultFile, "UTF-8");
to write the destination file.
How to get the actual character in my destination file too?