Cannot write chinese characters to a filename
问题 public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); String fileName = in.nextLine(); Writer out = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("C:/temp/"+fileName+".txt"), "UTF-8"));//Ex thrown out.close(); } I'm trying to create a writer that can handle chinese characters to the file name. So I can create a file called 你好.txt for example. However I get a FileNotFoundException with the above code, it works perfectly fine for