<?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>多一行空白 &#8211; WL</title>
	<atom:link href="https://wwl3.com/tag/%E5%A4%9A%E4%B8%80%E8%A1%8C%E7%A9%BA%E7%99%BD/feed/" rel="self" type="application/rss+xml" />
	<link>https://wwl3.com</link>
	<description>越来越好，越好越来</description>
	<lastBuildDate>Thu, 18 Sep 2014 14:07:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://wwl-1316477995.cos.ap-shanghai.myqcloud.com/uploads/2023/01/logo-188x188.jpg</url>
	<title>多一行空白 &#8211; WL</title>
	<link>https://wwl3.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>UTF-8 BOM 引发的显示问题</title>
		<link>https://wwl3.com/2008/10/utf-8-bom-%e5%bc%95%e5%8f%91%e7%9a%84%e6%98%be%e7%a4%ba%e9%97%ae%e9%a2%98/</link>
		
		<dc:creator><![CDATA[不一样的蚊子]]></dc:creator>
		<pubDate>Mon, 27 Oct 2008 05:50:20 +0000</pubDate>
				<category><![CDATA[Retweeted]]></category>
		<category><![CDATA[BOM]]></category>
		<category><![CDATA[headers already sent]]></category>
		<category><![CDATA[UTF-8]]></category>
		<category><![CDATA[多一行空白]]></category>
		<guid isPermaLink="false">http://wwl3.com/?p=3</guid>

					<description><![CDATA[做界面在网页上展现时遇到一问题，经常会多一行空白，FIREBUG查出来没有任何代码。或者是多出几个莫名其妙的字符“锘?”。 查了一些资料，发现原来是 UTF-8 BOM 这东西在作怪。现将解决方案提供如下： 将editplus下面的设置修改一下： 将被引入的文件全部打开，另存将原有文件覆盖，搞定。 W3C官方资料：Display problems caused by the UTF-8 BOM 补充一下：UTF-8 BOM也会让PHP出现问题：PHP代码里有session_start()，header()或者setcookie()等函数时就会出现“headers already sent”的错误提示信息。 Aley也遇到了同样的问题，用PHP写了个工具，编译成了exe文件。可以对目录底下所有文件或者对单个文件进行检查和移除UTF-8的BOM，暂时只支持PHP、HTML、Javascript和CSS格式文件。 下载：[download#1]]]></description>
										<content:encoded><![CDATA[<p>做界面在网页上展现时遇到一问题，经常会多一行空白，FIREBUG查出来没有任何代码。或者是多出几个莫名其妙的字符“<span style="color: #ff0000;">锘?<span style="color: #000000;">”</span></span>。</p>
<p>查了一些资料，发现原来是 UTF-8 BOM 这东西在作怪。现将解决方案提供如下：</p>
<p>将editplus下面的设置修改一下：</p>
<figure id="attachment_4" aria-describedby="caption-attachment-4" style="width: 482px" class="wp-caption alignnone"><a href="https://wwl3.com/wp-content/uploads/2008/10/bom-utf-8.gif"><img fetchpriority="high" decoding="async" class="size-full wp-image-4" title="bom-utf-8" src="https://wwl3.com/wp-content/uploads/2008/10/bom-utf-8.gif" alt="参数-文件-总是移除签名" width="482" height="364" srcset="https://wwl-1316477995.cos.ap-shanghai.myqcloud.com/uploads/2008/10/bom-utf-8.gif 482w, https://wwl-1316477995.cos.ap-shanghai.myqcloud.com/uploads/2008/10/bom-utf-8-300x226.gif 300w" sizes="(max-width: 482px) 100vw, 482px" /></a><figcaption id="caption-attachment-4" class="wp-caption-text">参数-文件-总是移除签名</figcaption></figure>
<p>将被引入的文件全部打开，另存将原有文件覆盖，搞定。</p>
<p>W3C官方资料：<a title="打开链接" href="http://www.w3.org/International/questions/qa-utf8-bom" target="_blank">Display problems caused by the UTF-8 BOM</a></p>
<p>补充一下：UTF-8 BOM也会让PHP出现问题：PHP代码里有session_start()，header()或者setcookie()等函数时就会出现“headers already sent”的错误提示信息。</p>
<p><a href="http://www.aley.cn/" target="_self">Aley</a>也遇到了<a href="http://www.aley.cn/blog/5" target="_self">同样的问题</a>，用PHP写了个工具，编译成了exe文件。可以对目录底下所有文件或者对单个文件进行检查和移除UTF-8的BOM，暂时只支持PHP、HTML、Javascript和CSS格式文件。</p>
<p>下载：[download#1]</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
