Myeclipse创建HTML文件中文显示乱码问题

例如

 

运行结果

错误原因

不同浏览器的,编码格式不同

解决方法

运行结果

通常charset的设值我们常用的有gb2312,gbk,utf-8三种,即有三种编码规定:

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
编码格式为GB2312
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
编码格式为UTF-8
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
编码格式为UTF-8
合群是堕落的开始 优秀的开始是孤行
原文地址:https://www.cnblogs.com/biaogejiushibiao/p/9419650.html