RandomAccessFile raf = new RandomAccessFile(new File(filePath), "r");
String temp = raf.readLine();
while(temp!=null)
{
temp = new String(temp.getBytes("iso8859-1"),"utf-8");//先解码再编码
System.err.println("||||||:"+temp);
temp = raf.readLine();
解决中文随机读取的乱码问题
最新推荐文章于 2025-03-20 21:00:13 发布
