How to read non-english characters with Scanner java?
问题 there I'm making this app to change subtitle files. when I was testing it I faced a strange problem, when I was testing it on non-english (persian for instance) the program wouldn't read the file. this is how I read subtitles in my program: Scanner sub = null; try { sub = new Scanner(new File(address)); } catch (FileNotFoundException ex) { ex.printStackTrace(); } while(sub.hasNext()){ String sentence = sub.nextLine(); //some magical stuff here :) } where address is a String keeping place of