首页 > 技术文章 > myeclipse html乱码

bluewelkin 2014-05-16 10:30 原文

myeclispe 中 html乱码

 在页面的开头写上即可 <meta http-equiv="content-type" content="text/html; charset=UTF-8">

若不行,把 <meta http-equiv="content-type" content="text/html; charset=UTF-8">中的charset改为gb2312就可以了

 

myeclispe 中 jsp乱码

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ page pageEncoding="utf-8" %> 这样更简单。

推荐阅读