首页 › 答案 › 题库 › 超星尔雅学习通未分类

用户使用POST方式提交的数据中存在汉字(使用GBK字符集),在Servlet中需要使用下述()语句处理。

用户使用POST方式提交的数据中存在汉字(使用GBK字符集),在Servlet中需要使用下述()语句处理。
A.request.setCharacterEncoding("GBK");
B.request.setContentType("text/html;charset=GBK");
C.response.setCharacterEncoding("GBK");
D.response.setContentType("text/html;charset=GBK");
正确答案:A