好久没有玩过代码,今天用Myeclipse试着写写代码,新建一个HTML页面,设置编码格式为UTF-8后,在浏览器端访问发生乱码,通过查找发现原因如下:

myeclipse html5 UTF-8

myeclipse html5 UTF-8


myeclipse默认的模板语句是<meta name="content-type" content="text/html; charset=UTF-8">

这里只是需要将其改为:<meta name="content-type" content="text/html" charset="UTF-8">,在浏览器端访问就不会出现乱码了。


相关文章:

  • 2022-12-23
  • 2021-07-15
  • 2021-12-01
  • 2021-12-28
  • 2021-09-11
  • 2021-05-21
  • 2021-04-07
猜你喜欢
  • 2022-12-23
  • 2021-05-02
  • 2021-12-01
  • 2021-12-27
  • 2021-10-16
  • 2021-04-17
相关资源
相似解决方案