<?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>... coding (the life) &#187; basic html</title>
	<atom:link href="http://www.marvinmarcelo.com/tag/basic-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marvinmarcelo.com</link>
	<description>Anything about programming, and a little about me.</description>
	<lastBuildDate>Mon, 09 Jan 2012 13:44:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Not matching charset reloads page twice</title>
		<link>http://www.marvinmarcelo.com/not-matching-charset-reloads-page-twice/</link>
		<comments>http://www.marvinmarcelo.com/not-matching-charset-reloads-page-twice/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 08:02:49 +0000</pubDate>
		<dc:creator>Marvin</dc:creator>
				<category><![CDATA[me stuff]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[basic html]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[quirksmode]]></category>

		<guid isPermaLink="false">http://www.marvinmarcelo.com/?p=1413</guid>
		<description><![CDATA[I noticed this when I uploaded an entire project files from dev server to production server. Using Web Developer plugin for Firefox, I had a clue to compare the Content-Type from the response header and the one I have in &#8230; <a href="http://www.marvinmarcelo.com/not-matching-charset-reloads-page-twice/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I noticed this when I uploaded an entire project files from dev server to production server. Using <a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer</a> plugin for Firefox, I had a clue to compare the <tt>Content-Type</tt> from the response header and the one I have in <tt>&lt;meta&gt;</tt> tags in my HTML.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Date: Wed, 25 Nov 2009 01:32:28 GMT
Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5.7
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 6572
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
&nbsp;
200 OK</pre></td></tr></table></div>

<p>And it was really it! Though they both have <tt>text/html</tt>, they had different character set values. Server responses with ISO-8859-1, but the <tt>&lt;meta&gt;</tt> instructs the browser to use utf-8, as it is declared in the document.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;</pre></div></div>

<p>And so the second load of page occurs, its sort of trying to correct page encoding on the client-side. In the script I was working, I needed to pass some session values to the next page and clear it on page load, but when it reloads the second time, the session value had been emptied.</p>
<p>Hope it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marvinmarcelo.com/not-matching-charset-reloads-page-twice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

