首页 > Web开发 > 详细

Jsp 中文乱码,解决

时间:2016-02-08 01:05:22      阅读:159      评论:0      收藏:0      [点我收藏+]

 

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

 

Jsp 中文乱码,解决

原文:http://www.cnblogs.com/TonyYPZhang/p/5184837.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!