i built a program that reads xml files an when i run it in netbeans it works and characters are readable look to the imageopening in netbeans
but when i run it from dist folder its works but when i try to open folder that containing arabic language it show characters like in the image opening from dist folder
this is some of opening code
int option = chooser.showOpenDialog(this);
if(option == JFileChooser.APPROVE_OPTION){
if(chooser.getSelectedFile()!=null){
try {
reader = new FileReader(chooser.getSelectedFile());
BufferedReader buff = new BufferedReader(reader);
text.read(buff, null);
opened = chooser.getSelectedFile();
this.setTitle(chooser.getSelectedFile().getAbsolutePath());
} catch (IOException ex) {
JOptionPane.showMessageDialog(null, "الملف غير موجود", "خطأ", JOptionPane.ERROR_MESSAGE);
}finally{
if(reader!=null)try {
reader.close();
} catch (IOException ex) {
}
}
}
}