Hi,
i have create a java program, which - generally - reads, put in a diferent hierarhy and writes some string to a xml file.
Some of the files have Greek characters. When i run it with (my personal favorite) Netbeans, all process is just fine.
But when i run it just from .jar (the same jar which netbeans create), then all Greek character look like more as ... hieroglyphics..
At start, i thought that it was my mistake. So i make this change at code:
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath),"UTF8"));
Unfortunally this make no difference. I try also to change encoding ("ISO8859_7" , "Cp1253") but result was the same and worse..
I concluded that something done by Netbeans and works the process correctly. Perchaps an option?
It is need to compile and run it with .bat file, so .. any ideas what should i do to fix this?
Thank you for your time.