<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: UTF-8, PHP headers, and BOMs</title>
	<atom:link href="http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/</link>
	<description>Tokyo and tech through the eyes of a split pea</description>
	<lastBuildDate>Wed, 23 Sep 2009 11:20:52 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ian</title>
		<link>http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/comment-page-1/#comment-13982</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 16 Jun 2008 07:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/#comment-13982</guid>
		<description>Heh. I&#039;ve run into this before too. Lucky for me I use jEdit which differetiates between BOM and non-BOM UTF and it took a lot less time to figure out that there was a BOM included in the file.</description>
		<content:encoded><![CDATA[<p>Heh. I&#8217;ve run into this before too. Lucky for me I use jEdit which differetiates between BOM and non-BOM UTF and it took a lot less time to figure out that there was a BOM included in the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caos30</title>
		<link>http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/comment-page-1/#comment-13400</link>
		<dc:creator>caos30</dc:creator>
		<pubDate>Sun, 18 May 2008 18:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattromaine.com/2008/03/14/utf-8-php-headers-and-boms/#comment-13400</guid>
		<description>Woooowwww... thanks guy, you safe my life and my psyquic health!!! ;)))

Since one week ago i have been crazy by this error or bug!! In my case, i had a php application developed by me during the last two years (a CMS) and the last week i done a big change in all the CMS structure, and can you imagine my sorpress when after hours of work i saw a white horizontal space at top of my pages... all of the pages of the CMS. The most curious were that it showed in IE7 and FF3 (beta) but not in FF2. My experience say that when one browser don&#039;t show well some code it means that there are something wrong (normally little).

Well, soon i discovered that the source code of my pages showed in the browsers it had some &quot;invisible&quot; characters at the begin of the document. I could detect it presence moving the text cursor &quot;between this invisible characters&quot;. So they were there.

The next question was to understand where and how this &quot;invisible codes&quot; were generated in my PHP code. And at this point i was blocked until i found your page, man!!!! ufff... thanks a lot !!!!

I want to share here the solution for my case:

i&#039;ve opened each PHP file of my application (in my case with the bluefish editor for linux) and positioning the text cursor just at the begining. Attention: it is very important to do this using the keyboard &quot;Home&quot; key (&quot;tecla Inicio&quot; in spanish) for really put the text cursor before the &quot;invisible codes&quot; that are before the &quot;&lt;?php&quot; characters. And after, select all the file pressing the keys SHIFT+End, and after press &quot;Delete&quot; Key. And finally rewrite &quot;&lt;?php&quot;. 

In my case this was the problem: there were some invisible codes just at the begining of the php files. And the solution, obviously was deleting it.

I ignore from where this character appears or how it do. I suspect that Notepad++ inserted it when i converted the original PHP files (in ISO-8859-1 latin encoding) to UTF-8 encoding, because it was one of the jobs i did for do better my CMS (because i&#039;m from spanish language country). But i&#039;m not sure if the Notepad++ application (for windows) was the cause :&#124;  

I hope my explanation will help anyone more (and will be indexed by searchers ;)

Thanks!</description>
		<content:encoded><![CDATA[<p>Woooowwww&#8230; thanks guy, you safe my life and my psyquic health!!! ;)))</p>
<p>Since one week ago i have been crazy by this error or bug!! In my case, i had a php application developed by me during the last two years (a CMS) and the last week i done a big change in all the CMS structure, and can you imagine my sorpress when after hours of work i saw a white horizontal space at top of my pages&#8230; all of the pages of the CMS. The most curious were that it showed in IE7 and FF3 (beta) but not in FF2. My experience say that when one browser don&#8217;t show well some code it means that there are something wrong (normally little).</p>
<p>Well, soon i discovered that the source code of my pages showed in the browsers it had some &#8220;invisible&#8221; characters at the begin of the document. I could detect it presence moving the text cursor &#8220;between this invisible characters&#8221;. So they were there.</p>
<p>The next question was to understand where and how this &#8220;invisible codes&#8221; were generated in my PHP code. And at this point i was blocked until i found your page, man!!!! ufff&#8230; thanks a lot !!!!</p>
<p>I want to share here the solution for my case:</p>
<p>i&#8217;ve opened each PHP file of my application (in my case with the bluefish editor for linux) and positioning the text cursor just at the begining. Attention: it is very important to do this using the keyboard &#8220;Home&#8221; key (&#8221;tecla Inicio&#8221; in spanish) for really put the text cursor before the &#8220;invisible codes&#8221; that are before the &#8220;&lt;?php&#8221; characters. And after, select all the file pressing the keys SHIFT+End, and after press &#8220;Delete&#8221; Key. And finally rewrite &#8220;&lt;?php&#8221;. </p>
<p>In my case this was the problem: there were some invisible codes just at the begining of the php files. And the solution, obviously was deleting it.</p>
<p>I ignore from where this character appears or how it do. I suspect that Notepad++ inserted it when i converted the original PHP files (in ISO-8859-1 latin encoding) to UTF-8 encoding, because it was one of the jobs i did for do better my CMS (because i&#8217;m from spanish language country). But i&#8217;m not sure if the Notepad++ application (for windows) was the cause :|  </p>
<p>I hope my explanation will help anyone more (and will be indexed by searchers ;)</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
