jsp页面的html源码中的中文变成unicode
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>工商要闻</title>
<meta name="keywords" content="工商要闻" />
<meta name="description" content="工商要闻" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" contect="zh-CN">
--------------------编程问答-------------------- 正常啊。可以加上
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> New Document </title>
</head>
试试 --------------------编程问答-------------------- 加过了,没用. --------------------编程问答--------------------
抱歉,刚才我理解错了意思了。
这个应该是unicode的编码格式。以前我也遇到过,不影响页面的显示,但是影响源码的查看。
所以charset=UTF-8" 应该为Unicode吧。
然后再把那么编码重新改成中文查查看看 --------------------编程问答-------------------- 另外如果你用的是火狐浏览器的话,可以右键另存为‘本页面’
就显示:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>工商要闻</title>
<meta name="keywords" content="工商要闻">
<meta name="description" content="工商要闻">
<meta http-equiv="content-language" contect="zh-CN">
</head>
<body>
</body></html>
这个了。
补充:Java , Web 开发