摘要:
将本地的gbk文件流读取变换成utf-8文件publicstaticvoidgbk2utf8(StringtargetFile,StringoutFile){BufferedReaderbr=null;BufferedWriterbw=null;try{InputStreamis=newFileInputStream(targetFile);OutputStreamos=newFileOutputStream(outFile);br=newBufferedReader(newInputStreamReader(is,"gbk"));Stringstr="" 阅读全文