微信公众号发送模板消息,出现乱码问题---字符中文编码问题
将out = new PrintWriter(conn.getOutputStream());//导致乱码问题
修改为
OutputStreamWriteroutWriter =new OutputStreamWriter(conn.getOutputStream(), "utf-8");
out =new PrintWriter(outWriter);
将out = new PrintWriter(conn.getOutputStream());//导致乱码问题
修改为
OutputStreamWriteroutWriter =new OutputStreamWriter(conn.getOutputStream(), "utf-8");
out =new PrintWriter(outWriter);