enterprisearchitect生成java后亂碼?
BufferedReader txtRead = new BufferedReader (new FileReader ("test.txt"));讀取tests.txt的時候就是亂碼。解決方法:把上面那句改成這樣就ok了BufferedReader txtRead=new BufferedReader(new InputStreamReader(new FileInputStream("test.txt"),"gbk"));
enterprisearchitect生成java后亂碼?
BufferedReader txtRead = new BufferedReader (new FileReader ("test.txt"));讀取tests.txt的時候就是亂碼。解決方法:把上面那句改成這樣就ok了BufferedReader txtRead=new BufferedReader(new InputStreamReader(new FileInputStream("test.txt"),"gbk"));