scan in arabic characters netbeans 8
I have this simple code that prints Arabic sentence and scan arabic characters . what is drivingme crazy is that it prints in cmd right , but never scan characters it scans arabic characters in form of ��� ����� I tried everything: Scanner(System.in,"UTF-8") , Scanner(System.in,"UTF8"); please help public static void main(String[] args) { Scanner in2 = new Scanner(System.in,"UTF-8"); System.out.printf(" ادخل جملة السؤال \n"); String s = in2.nextLine(); System.out.printf(""+s+""); // TODO code application logic here } Scanner in2 = new Scanner(System.in,"UTF-8"); System.out.printf(" ادخل جملة