问答详情
源自:3-10 response对象

关于response报错的问题

<%@ page language="java" import="java.util.*,java.io.*" contentType="text/html; charset=utf-8"%>


<%

response.setContentType = ("text/html;charset=utf-8");

out.println("<h1>response内置对象</h1>");

PrintWriter writeIo =response.getWriter();

writeIo.println("PrintWriter控制的输出流");

%>

http://img2.mukewang.com/59b9892c0001834706430142.jpg

提问者:千山暮雪CN 2017-09-14 03:38

个回答

  • 果丶
    2017-09-14 14:28:53
    已采纳

    response.setContentType = ("charset=utf-8")