用户使用POST方式提交的数据中存在汉字(使用utf-8字符集),在Servlet中需要使用下述______语句处理。
选项:
A:response.setCharacterEncoding("utf-8");
B:request.setContentType("text/html;charset=utf-8");
C:response.setContentType("text/html;charset=utf-8");
D:request.setCharacterEncoding("utf-8);
发布时间:2024-06-02 10:03:04