标签:响应 ken 获取 servlet 资源 乱码 exception content start
我自己都不知道在这个地方倒下了多少次了:
关键代码:
// 获取URLConnection对象对应的输出流
OutputStreamWriter outWriter = new OutputStreamWriter(conn.getOutputStream(), "utf-8");
out = new PrintWriter(outWriter);
乱码时候的写法是:
in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
标签:响应 ken 获取 servlet 资源 乱码 exception content start
原文地址:http://www.cnblogs.com/zouhao/p/6900694.html