从java中取出一个字符串并将其放入一个文本文件中。当字符串被写入时,它不包含Â,但是当字符串在字符板中打开时,字符会出现。从java写入后从word pad文件中移除
字符串无:
Notice of Appeal:
Hamilton City Board of Education
字符串:
Notice of Appeal:
Â
Â
Hamilton City Board of Education
下面是写串
out = new BufferedWriter (new FileWriter(filePrefix + "-body" + ".txt"));
out.write("From: " + em.from);
out.newLine();
out.write("Sent Date: " + em.sentDate);
out.newLine();
out.write("Subject: " + em.subject);
out.newLine();
out.newLine();
out.newLine();
String temp = new String(emi.stringContent.getBytes("UTF-8"), "UTF-8");
out.write(temp);
我应该怎么做来没有他们出现在字盘?
幕后发生了一些事情,您需要停下来。我不确定我的生活,但我们将如何根据你的帖子猜测它是什么。您可能需要向我们提供更多信息和相关代码,最好是[sscce](http://sscce.org)。 – 2013-05-10 01:19:18
这是一个编码问题。确保你使用的是UTF-8。 – 2013-05-10 01:20:10
我站好了。 – 2013-05-10 01:20:46