问题描述
如题
解决方案
解决方案二:
该回复于2011-03-02 13:55:21被版主删除
解决方案三:
求代码
解决方案四:
try{InputStreamin=newFileInputStream("utf8.txt");InputStreamReaderiReader=newInputStreamReader(in,"UTF-8");BufferedReaderreader=newBufferedReader(iReader);OutputStreamos=newFileOutputStream("ms932.txt");PrintWriterwriter=newPrintWriter(newOutputStreamWriter(os,"MS932"));StringaLine;while((aLine=reader.readLine())!=null)writer.println(aLine);writer.close();reader.close();}catch(Exceptione){e.printStackTrace();}
解决方案五:
Stringabc="你好"//UTF-8Stringdf=newString(abc.getBytes("utf-8"),"ms932");
时间: 2025-01-21 05:06:24