<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>威言大义 &#187; 浏览器</title>
	<atom:link href="http://www.chenweionline.cn/archives/tag/%e6%b5%8f%e8%a7%88%e5%99%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chenweionline.cn</link>
	<description>言简意赅，论人论事论学问</description>
	<lastBuildDate>Thu, 05 May 2011 05:16:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE内核浏览器不能自动识别网页编码的解决方法</title>
		<link>http://www.chenweionline.cn/archives/45.htm</link>
		<comments>http://www.chenweionline.cn/archives/45.htm#comments</comments>
		<pubDate>Wed, 16 Jun 2010 06:35:25 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[网站开发]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[转载]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=45</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;最近为C-DBLP系统开发一个新的人名列表展示的功能，开发过程中遇到IE内核浏览器（如IE8，傲游，Sogou浏览器）不能正确识别人名列表页面的问题，这些浏览器在打开http://www.cdblp.cn/authorlist.php后只显示一片空白，查看页面源代码发现页面内容已经下载到本地，但其中的中文都是乱码。在页面中右键选择“编码”将页面编码人工设置为UTF-8后页面显示正常，但再次访问该页面时浏览器仍然不能显示页面内容。这样的问题只在IE内核的浏览器中出现，在Firefox、Safari浏览器中都没有遇到这种情况。在网上查了很多资料后终于解决了这个问题，特将查到的解决方案转载如下：
&#160;&#160;&#160;在windows操作系统上使用IE作为浏览器时。常常会发生这样的问题：在浏览使用UTF-8编码的网页时，浏览器无法自动侦测（即没有设定“自 动选择”编码格式时）该页面所用的编码。即使网页已经声明过编码格式：
&#60;meta  http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&#62;
由此造成某些含有中文UTF-8编码的页面产生空白输出。
&#160;&#160;&#160;如果使用的是Mozilla、Mozilla  Firefox、Safari的浏览器这不会造成这个问题。这是由于IE解析网页编码时以HTML内的标签优先，而后才是HTTP  header内的讯息；而mozilla系列的浏览器则刚刚相反。
&#160;&#160;&#160;由于UTF-8为3个字节表示一个汉字，而普通的GB2312或BIG5 是两个。页面输出时，由于上述原因，使浏览器解析、输出&#60;title&#62;&#60;/title&#62;的内容时，如果在&#60; /title&#62;前有奇数个全角字符时，IE把UTF-8当作两个字节解析时出现半个汉字的情况，这时该半个汉字会和&#60;/title&#62; 的&#60;结合成一个乱码字，导致IE无法读完&#60;title&#62;部分，使整个页面为空白输出。而这个时候如果察看源文件的话，会发现实际上整个 页面全部已经输出了。
&#160;&#160;&#160;因此最简单的解决办法是在网页文件的&#60;head&#62;&#60;/head&#62;标签中一定要把字符定 义&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243;  /&#62; 放在&#60;title&#62;&#60;/title&#62;之前。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;最近为C-DBLP系统开发一个新的人名列表展示的功能，开发过程中遇到IE内核浏览器（如IE8，傲游，Sogou浏览器）不能正确识别人名列表页面的问题，这些浏览器在打开<a href="http://www.cdblp.cn/authorlist.php" target='_blank'>http://www.cdblp.cn/authorlist.php</a>后只显示一片空白，查看页面源代码发现页面内容已经下载到本地，但其中的中文都是乱码。在页面中右键选择“编码”将页面编码人工设置为UTF-8后页面显示正常，但再次访问该页面时浏览器仍然不能显示页面内容。这样的问题只在IE内核的浏览器中出现，在Firefox、Safari浏览器中都没有遇到这种情况。<span id="more-45"></span>在网上查了很多资料后终于解决了这个问题，特将查到的解决方案转载如下：</p>
<p>&nbsp;&nbsp;&nbsp;在windows操作系统上使用IE作为浏览器时。常常会发生这样的问题：在浏览使用UTF-8编码的网页时，浏览器无法自动侦测（即没有设定“自 动选择”编码格式时）该页面所用的编码。即使网页已经声明过编码格式：</p>
<p>&lt;meta  http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;</p>
<p>由此造成某些含有中文UTF-8编码的页面产生空白输出。</p>
<p>&nbsp;&nbsp;&nbsp;如果使用的是Mozilla、Mozilla  Firefox、Safari的浏览器这不会造成这个问题。这是由于IE解析网页编码时以HTML内的标签优先，而后才是HTTP  header内的讯息；而mozilla系列的浏览器则刚刚相反。</p>
<p>&nbsp;&nbsp;&nbsp;由于UTF-8为3个字节表示一个汉字，而普通的GB2312或BIG5 是两个。页面输出时，由于上述原因，使浏览器解析、输出&lt;title&gt;&lt;/title&gt;的内容时，如果在&lt; /title&gt;前有奇数个全角字符时，IE把UTF-8当作两个字节解析时出现半个汉字的情况，这时该半个汉字会和&lt;/title&gt; 的&lt;结合成一个乱码字，导致IE无法读完&lt;title&gt;部分，使整个页面为空白输出。而这个时候如果察看源文件的话，会发现实际上整个 页面全部已经输出了。</p>
<p>&nbsp;&nbsp;&nbsp;因此最简单的解决办法是<span style="color: #0000ff;"><strong>在网页文件的&lt;head&gt;&lt;/head&gt;标签中一定要把字符定 义&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243;  /&gt; 放在&lt;title&gt;&lt;/title&gt;之前</strong></span>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/45.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox3.6正式发布，更快更炫更好用</title>
		<link>http://www.chenweionline.cn/archives/35.htm</link>
		<comments>http://www.chenweionline.cn/archives/35.htm#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:05:31 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=35</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;北京时间1月22日上午消息，mozilla公司今天正式发布Firefox浏览器3.6版，低版本Firefox用户可以直接通过工具栏中&#8221;帮助&#8221;-&#62;&#8221;检查更新&#8221;检测到最新版本，按提示下载更新后Firefox可自动更新到3.6版。如果您之前没有使用过Firefox，则可以从以下网址下载Firefox 3.6简体中文版：http://www.mozilla.com/en-US/products/download.html?product=firefox-3.6&#38;os=win〈=zh-CN。如果您是IE用户，mozilla公司还为您提供了简单的Firefox入门教程。［致IE用户］
&#160;&#160;&#160;&#160;&#160;&#160;根据市场研究公司StatCounter在12月发布的数据显示，火狐(Firefox)3.5浏览器以21.92%的全球市场份额超过IE7，成为全球第一 大浏览器。IE7、IE8紧随其后，分别以21.21%、20.31%的市场份额居亚、季军。Mozilla公司推出Firefox3.6将在浏览器市场上与IE展开新一轮的竞争。
&#160;&#160;&#160;&#160;&#160;&#160;Mozilla公司表示，Firefox3.6版的速度比之前版本提高了至少20%。在Mozilla网站上有这样一幅很有意思的展示Firefox运行速度的图片：
&#160;&#160;&#160;&#160;&#160;&#160;除了运行速度的提升外，Firefox3.6还提供了如下一些全新的功能：
- Personas：对火狐浏览器外观进行个性化设置，只需要单击主题，无需重启即可更换皮肤，超过3000种Firefox风格供您选择;Mozilla公司为此功能制作了一个很有意思的小片子，可以看一下：



- 插件升级器：火狐可以自动检测旧插件，从而保证用户不受潜在的安全漏洞威胁；
- 稳定性提升：火狐3.6大幅降低了由第三方软件引发的软件崩溃；
- 表格完成：当填写网络表格时，火狐会根据以往的信息给出填表建议；
- 性能：提升JavaScript性能、整体响应速度以及启动时间；
- 开放视频和音频：通过全球最优秀的HTML5视频和音频的支持，火狐目前可以对视频进行全屏播放，而且支持海报框架(poster  frame)。
&#160;&#160;&#160;&#160;&#160;&#160;Firefox3.6还为开发者提供了很多炫酷的功能：
- 支持最新的HTML5特性，包括本地文件处理的File API；
- 字体支持：除了OpenType和TrueType字体外，火狐3.6现在还支持新的网络开放字体格式；
- CSS渐变：支持CSS线性渐变和放射渐变，使得颜色的过渡更为平滑；
- 设备介绍：为笔记本或其他设备提供了介绍。
&#160;&#160;&#160;&#160;&#160;&#160;由于Firefox3.6刚刚发布，部分插件并不支持新版本导致功能错误，如迅雷下载工具的插件Thunder Extension 3.5就不能正常运行，在使用该插件时弹出如下的报错信息。希望迅雷能够尽快推出支持Firefox3.6的插件。

]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;北京时间1月22日上午消息，mozilla公司今天正式发布Firefox浏览器3.6版，低版本Firefox用户可以直接通过工具栏中&#8221;帮助&#8221;-&gt;&#8221;检查更新&#8221;检测到最新版本，按提示下载更新后Firefox可自动更新到3.6版。如果您之前没有使用过Firefox，则可以从以下网址下载Firefox 3.6简体中文版：<a href="http://www.mozilla.com/en-US/products/download.html?product=firefox-3.6&amp;os=win&amp;lang=zh-CN" target="_blank">http://www.mozilla.com/en-US/products/download.html?product=firefox-3.6&amp;os=win〈=zh-CN</a>。如果您是IE用户，mozilla公司还为您提供了简单的Firefox入门教程。［<a href="http://support.mozilla.com/zh-CN/kb/For+Internet+Explorer+Users?style_mode=inproduct" target="_blank">致IE用户</a>］</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据市场研究公司StatCounter在12月发布的数据显示，火狐(Firefox)3.5浏览器以21.92%的全球市场份额超过IE7，成为全球第一 大浏览器。IE7、IE8紧随其后，分别以21.21%、20.31%的市场份额居亚、季军。Mozilla公司推出Firefox3.6将在浏览器市场上与IE展开新一轮的竞争。<span id="more-35"></span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mozilla公司表示，Firefox3.6版的速度比之前版本提高了至少20%。在Mozilla网站上有这样一幅很有意思的展示Firefox运行速度的图片：<a href="http://www.mozilla.com/en-US/firefox/features/" target="_blank"><img class="aligncenter size-medium wp-image-36" title="firefox 3.6 performance" src="http://www.chenweionline.cn/wp-content/uploads/2010/01/firefox-3.6-performance.png" alt="firefox 3.6 performance" width="300" height="176" /></a><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;除了运行速度的提升外，Firefox3.6还提供了如下一些全新的功能：<br />
- Personas：对火狐浏览器外观进行个性化设置，只需要单击主题，无需重启即可更换皮肤，<a href="http://www.getpersonas.com/en-US/gallery/">超过3000种Firefox风格供您选择</a>;Mozilla公司为此功能制作了一个很有意思的小片子，可以看一下：</p>
<div style="text-align:center">
<object style="width: 640px; height: 360px;" classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="640" height="360" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"><param name="autoplay" value="false" /><param name="src" value="http://videos.mozilla.org/firefox/3.6/getpersonas.mp4" /><embed style="width: 640px; height: 360px;" type="video/quicktime" width="640" height="360" src="http://videos.mozilla.org/firefox/3.6/getpersonas.mp4" autoplay="false"></embed></object>
</div>
<p>- 插件升级器：火狐可以自动检测旧插件，从而保证用户不受潜在的安全漏洞威胁；<br />
- 稳定性提升：火狐3.6大幅降低了由第三方软件引发的软件崩溃；<br />
- 表格完成：当填写网络表格时，火狐会根据以往的信息给出填表建议；<br />
- 性能：提升JavaScript性能、整体响应速度以及启动时间；<br />
- 开放视频和音频：通过全球最优秀的HTML5视频和音频的支持，火狐目前可以对视频进行全屏播放，而且支持海报框架(poster  frame)。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Firefox3.6还为开发者提供了很多炫酷的功能：<br />
- 支持最新的HTML5特性，包括本地文件处理的File API；<br />
- 字体支持：除了OpenType和TrueType字体外，火狐3.6现在还支持新的网络开放字体格式；<br />
- CSS渐变：支持CSS线性渐变和放射渐变，使得颜色的过渡更为平滑；<br />
- 设备介绍：为笔记本或其他设备提供了介绍。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由于Firefox3.6刚刚发布，部分插件并不支持新版本导致功能错误，如迅雷下载工具的插件Thunder Extension 3.5就不能正常运行，在使用该插件时弹出如下的报错信息。希望迅雷能够尽快推出支持Firefox3.6的插件。</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-37" title="firefox 3.6 不支持thunder" src="http://www.chenweionline.cn/wp-content/uploads/2010/01/firefox-3.6-不支持thunder.png" alt="firefox 3.6 不支持thunder" width="450" height="102" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/35.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

