in an application i write some strings into a file. Some of them are in greek language. When i make this process with Netbeans, all work great. But when i try to run it with my .bat file, the same code writes the greek text with that strange "�?" character. Obviously netbeans regulate something and it can writes the Greek text, but i can't find it.
Example of write:
BufferedWriter out = new BufferedWriter(new FileWriter(FilePath));
out.write(text);
out.close();
The compile.bat and run.bat files are the simplest form they can get.
What can i do to fix this?