Jsp 中文乱码,解决

jsp 乱码 : 

The time on the server is 2016?2?7? ??10?45?32?.

在 jsp 中,用 jsp 语法添加 utf-8 字符集,可解决此问题

<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>  

解决后 : 

The time on the server is 2016年2月7日 下午10时45分14秒.

参考资料 : 

Java中的乱码问题, 周洋的博客

原文地址:https://www.cnblogs.com/TonyYPZhang/p/5184837.html