Page 1 of 1

关于debug模式下的编码

Posted: Jun 11 2010, 10:39
by ddbb
比如 http://2010.sina.com.cn/prk/2010-06-11/ ... mmand=dbug..
生成的页面的源代码里 head部分只有

Code: Select all

<head>
<title>Source of http://2010.sina.com.cn/prk/2010-06-11/035610507.shtml</title>
<LINK REL="stylesheet" type="text/css" href="http://Local.ptron/ViewSrc.css">
</head>
而这个页面是应该有<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 的.....

因为没有 所以页面显示上就出问题了......

当然 我可以在浏览器里指定这个domain的编码....可是还是因为以前说过的原因 我不能指定.......

我打算改一下生成方式 在生成的dbug页面的head里 加入原来页面的charset..... 这样才是一劳永逸......

问题是我不知道这个页面现在是怎么生成的....... :cry:

Re: 关于debug模式下的编码

Posted: Jun 12 2010, 09:45
by phoenix
那个是写死在程序里面的。

Re: 关于debug模式下的编码

Posted: Jun 14 2010, 14:20
by ddbb
额...........这....这.....这.......

这也太过分了.........我该怎么办啊........

Re: 关于debug模式下的编码

Posted: Jun 15 2010, 23:20
by phoenix
要么你再挂一个 Proxomitron 专门来过滤 debug 页面。