Servlet页面输出中文乱码解决,很简单
Servlet输出中文总是出现乱码,我自己也老是忘记设置,在此做个笔记!
public class cookiedemo01 extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//解决中文乱码问题
req.setCharacterEnco
原创
2020-11-04 23:14:37 ·
1145 阅读 ·
0 评论