【发布时间】:2014-02-01 11:58:00
【问题描述】:
如何让PrintWriter写成UTF-8?
pstream = new PrintWriter(csocket.getOutputStream(), true);
String res = "some string";
pstream.println(res); // here I want to output string as UTF-8
【问题讨论】:
标签: java utf-8 printwriter