0
我有一个像Eclipse控制台VS Netbeans的控制台
set myval;[2K[DESC[DESC[D
与一些非ASCII字符的文件,我有一个Java代码来读取文件
public static void main(String[] args) {
BufferedReader br = null;
try {
String sCurrentLine;
br = new BufferedReader(new FileReader("output.txt"));
while ((sCurrentLine = br.readLine()) != null) {
System.out.println(sCurrentLine);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null) {
br.close();
}
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
在NetBeans中的非ASCII不但是在Eclipse控制台中显示的那些字符是按原样显示的。 我想知道Netbeans如何删除这些字符,因为我需要清理这些非ASCII字符的文件。
感谢