首页 > 技术文章 > Jsp 中文乱码,解决

TonyYPZhang 2016-02-07 22:52 原文

 

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中的乱码问题, 周洋的博客

 

推荐阅读