String detials="";
String line="";
StringBuffer temp=null;
temp=new StringBuffer("");
try {
BufferedReader br=new BufferedReader(new FileReader(path+"/"+title));
while((line=br.readLine())!=null)
{
temp.append(line);
}
detials=new String(temp);
br.close();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("====================="+detials);
为什么会这样?怎么解决?
试了一下 还是乱码 不知道为什么
这和写android程序有关系吗
你文件用的是什么编码?
追问默认的,我用gbk和gb2312好像也不行,怎么看文本文件编码格式
本回答被提问者和网友采纳