I have created an application that reads data from the CSV file, process it and 
write it into another file.
It is working fine except one thing. German characters are being replaced. For 
example instead of leiüzig I see lei�zig
Same replacement I see in debugger when I stop it after reading a line from 
file.
I do have in my code
Reader rdr = BufferedReader(new InputStreamReader(new FileInputStream(file), 
"UTF-8"));
Later this Reader is used to build CSVReader (from OpenCsv library).

I want to be sure that that problems are in my code and not how debugger 
displays it.
I haven’t delt with foreign characters encoding before, so please forgive my 
ignorance.
I would gladly accept advice on my code as well.

I am running NB12.5 on OpenJDK 16 on Windows, but application is running in 
Java 8 SE.

Gary Greenberg
Staff Software Engineer

Reply via email to