utf-8转码为ascii
utf-8转码为ascii windows下是调用api
To Read a file encoded with UTF-8, use a BufferedReader:
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
To Write a file encoded with UTF-8 use a BufferedWriter:
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "GBK"));
GBK与Ascii 相同