• 2022-06-07
    用户使用 POST 方式提交的数据中存在汉字(使用 UTF-8字符集),在 Servlet 中需要使用下面( )个语句处理。
    A: request.setCharcterEncoding( “ UTF-8 ” );
    B: request.setContentType( “ text/html;charset= UTF-8 ” );
    C: reponse.setCharcterEncoding( “ UTF-8 ” );
    D: response.setContentType( “ text/html;charset= UTF-8 ” );
  • 举一反三