<?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>Oliver Nassar &#187; encoding</title>
	<atom:link href="http://www.olivernassar.com/tag/encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.olivernassar.com</link>
	<description>Making the interwebs.</description>
	<lastBuildDate>Thu, 12 Nov 2009 22:17:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Weird discovery: firefox converts $_SERVER, SF doesn&#8217;t?</title>
		<link>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/</link>
		<comments>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 02:16:38 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[converts]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[htmlentities]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=244</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/" rel="attachment wp-att-250"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/300px-Religious_syms.svg-150x150.png" alt="300px-Religious_syms.svg" title="300px-Religious_syms.svg" width="150" height="150" class="alignleft size-thumbnail wp-image-250" /></a> This is definitely up there for me; a very weird discovery about how firefox and safari differ in the way the _SERVER array is returned.

<code>print_r($_SERVER);
exit();</code>
Run that code in a php script; then check the source in both safari and in firefox. For the path, try something like index.php?name=what'sup]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/300px-Religious_syms.svg-150x150.png" alt="300px-Religious_syms.svg" title="300px-Religious_syms.svg" width="150" height="150" class="alignleft size-thumbnail wp-image-250" />This is definitely up there for me; a very weird discovery about how firefox and safari differ in the way the _SERVER array is returned.</p>
<p><code>print_r($_SERVER);<br />
exit();</code><br />
Run that code in a php script; then check the source in both safari and in firefox. For the path, try something like index.php?name=what&#8217;sup</p>
<p>The weird thing comes in with the fact that in Safari, the apostrophe isn&#8217;t converted/encoded, where as in Firefox, it is. I&#8217;m not really sure how I can explain this, and if I&#8217;m missing something, but it&#8217;s caused me a great deal of frustration and debugging. The only thing I can think of is that safari sends along different headers in the request than Firefox does, and therefore gets different results. I&#8217;ll look into it and update this post, but thought it was worth mentioning incase anyone else runs into the same type of problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
