MyEclipse2014的若干问题-乱码解决方案

来源:互联网 发布:淘宝保健品代理 编辑:程序博客网 时间:2024/06/11 15:23

一、导入工程时,src中的中文显示有乱码;

1)在菜单window-preference-workspace下


2)在菜单window-preference-content type下

      text: 设置 default encording: utf-8

               逐个点击,一般只需设置jsp,java Source file 的default encording: utf-8即可。



二、jsp文件,在design中显示正常,但是在preview中显示乱码

在<head> </head>之间增加一下代码

<meta http-equiv="content-type" content="text/html; charset=utf-8" />


0 0
原创粉丝点击