I have this line of code in java:
new BufferedWriter(new OutputStreamWriter(new FileOutputStream(name, append), "UTF-8"));
This writer does not write an UTF-8 file, because when I open it in notepad++ it says that the encoding is: ANSI as UTF-8. I need it to be pure UTF-8.
Do you have any suggestions?