下面写入文件后 中文成“??”了。怎么转编码啊。FileChannel fc = new RandomAccessFile("C:\\TTomcat6.0\\webapps\\caiji\\txt\\1138\\2.txt", "rw").getChannel();
fc.position(fc.size()); // 移到文件尾
fc.write(ByteBuffer.wrap("我要中文  中文啊。。\r\n".getBytes()));
fc.close();