题目:服务器使用如下哪条语句发送数据有可能有乱码( )
A. response.getOutputStream().write(“中国”.getBytes(“utf-8”));
B. response.getWriter().write(“中国”);
C. response.setCharacterEncoding(“utf-8”); response.setHeader(“Content-Type”,”text/html;charset=utf-8”); response.getWriter().write(“中国”);
D. response.setContentType(“text/html;charset=utf-8”); response.getWriter().write(“中国”);
答案:评论后可见此内容