I am trying to read file using Java and the file also containing special characters also. I am trying to write the contents of file into another file.
What is the solution to read special character files?
I am trying to read file using Java and the file also containing special characters also. I am trying to write the contents of file into another file.
What is the solution to read special character files?
Encode file in UTF-8 and use java encoding aware streams operators:
new InputStreamReader(new FileInputStream(file), "UTF-8")