<?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: IE Redirect Bug with Dynamic Location Hash</title>
	<atom:link href="http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/</link>
	<description>Stuff only Michi cares to read</description>
	<lastBuildDate>Sun, 22 Jan 2012 10:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Max</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15230</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 05 Aug 2010 15:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15230</guid>
		<description>and the redirect ;)
Redirect 301 /test/ /test/test.htm#123</description>
		<content:encoded><![CDATA[<p>and the redirect <img src='http://www.michikono.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Redirect 301 /test/ /test/test.htm#123</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15229</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 05 Aug 2010 15:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15229</guid>
		<description>see post before, the blog removed the code section...

html
head
meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot;
/head
body
script
window.location.hash = &quot;&quot;;
/script
/body
/html</description>
		<content:encoded><![CDATA[<p>see post before, the blog removed the code section&#8230;</p>
<p>html<br />
head<br />
meta http-equiv=&#8221;content-type&#8221; content=&#8221;text/html;charset=utf-8&#8243;<br />
/head<br />
body<br />
script<br />
window.location.hash = &#8220;&#8221;;<br />
/script<br />
/body<br />
/html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15228</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 05 Aug 2010 15:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15228</guid>
		<description>Hi,

have you ever tried to think about one of your first html lines could be the reason for this bug?!
I have spend some hours debugging this issue and figured out that it has to do with the encoding meta tag. The utf-8 / utf-16 encoding messes up in this tricky constellation.
&lt;code&gt;






window.location.hash = &#039;&#039;;



&lt;/code&gt;

There are 3 solutions so far:
1. you change the charset=utf-8 to iso-8859-1 or utf-32 on your static page
2. you are on the server side and set the  header(&#039;Content-type: text/html; charset=utf-8) 
3. the smoothest solution for me is on Apache: AddDefaultCharset UTF-8 (there is an IIS alternative as well)

Don&#039;t ask me, ask IE</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>have you ever tried to think about one of your first html lines could be the reason for this bug?!<br />
I have spend some hours debugging this issue and figured out that it has to do with the encoding meta tag. The utf-8 / utf-16 encoding messes up in this tricky constellation.<br />
<code></p>
<p>window.location.hash = '';</p>
<p></code></p>
<p>There are 3 solutions so far:<br />
1. you change the charset=utf-8 to iso-8859-1 or utf-32 on your static page<br />
2. you are on the server side and set the  header(&#8216;Content-type: text/html; charset=utf-8)<br />
3. the smoothest solution for me is on Apache: AddDefaultCharset UTF-8 (there is an IIS alternative as well)</p>
<p>Don&#8217;t ask me, ask IE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smccabe</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15187</link>
		<dc:creator>smccabe</dc:creator>
		<pubDate>Wed, 23 Jun 2010 16:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15187</guid>
		<description>Adding my thanks, this bug was owning me for a while until I found your article.  Stupid IE!</description>
		<content:encoded><![CDATA[<p>Adding my thanks, this bug was owning me for a while until I found your article.  Stupid IE!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scinos</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15046</link>
		<dc:creator>scinos</dc:creator>
		<pubDate>Fri, 30 Oct 2009 00:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15046</guid>
		<description>Sorry, my previous comment has a typo. It should read &quot;var a = &#039;something&#039;;&quot;</description>
		<content:encoded><![CDATA[<p>Sorry, my previous comment has a typo. It should read &#8220;var a = &#8216;something&#8217;;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scinos</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15045</link>
		<dc:creator>scinos</dc:creator>
		<pubDate>Fri, 30 Oct 2009 00:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15045</guid>
		<description>I&#039;ve found a related bug in IE8 (maybe in IE7, not in IE6).

Sometimes, this code displays the alert:

var a = ;
document.location.hash=a;
if (document.location.hash != a) {
   alert (&quot;FAIL!&quot;);
}


In that case, the page also get redirected to document.location.href without a hash. Very weird.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found a related bug in IE8 (maybe in IE7, not in IE6).</p>
<p>Sometimes, this code displays the alert:</p>
<p>var a = ;<br />
document.location.hash=a;<br />
if (document.location.hash != a) {<br />
   alert (&#8220;FAIL!&#8221;);<br />
}</p>
<p>In that case, the page also get redirected to document.location.href without a hash. Very weird.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15000</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Thu, 30 Jul 2009 00:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-15000</guid>
		<description>you can add IE8 to this too</description>
		<content:encoded><![CDATA[<p>you can add IE8 to this too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ethaniel</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14868</link>
		<dc:creator>ethaniel</dc:creator>
		<pubDate>Mon, 13 Oct 2008 12:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14868</guid>
		<description>Dude,thanks alot. I wasted several days trying to figure this out.</description>
		<content:encoded><![CDATA[<p>Dude,thanks alot. I wasted several days trying to figure this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14751</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Wed, 26 Mar 2008 14:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14751</guid>
		<description>i found a related bug.

in server side a.aspx :

Response.Redirect(&quot;test.aspx?v=123#a&quot;);

in test.aspx:

Request[&quot;v&quot;] is &quot;123#a&quot;

but Request[&quot;v&quot;] should be &quot;123&quot;

it only exists on IE6. IE7 and Firefox are OK.</description>
		<content:encoded><![CDATA[<p>i found a related bug.</p>
<p>in server side a.aspx :</p>
<p>Response.Redirect(&#8220;test.aspx?v=123#a&#8221;);</p>
<p>in test.aspx:</p>
<p>Request["v"] is &#8220;123#a&#8221;</p>
<p>but Request["v"] should be &#8220;123&#8243;</p>
<p>it only exists on IE6. IE7 and Firefox are OK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim</title>
		<link>http://www.michikono.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14750</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Wed, 26 Mar 2008 14:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2007/06/06/ie-redirect-bug-with-dynamic-location-hash/#comment-14750</guid>
		<description>i found a related bug.

in server side a.aspx :

Response.Redirect(&quot;test.aspx?v=123#a&quot;);

in test.aspx:

Request[&quot;url&quot;] is &quot;123#a&quot;

but Request[&quot;url&quot;] should be &quot;123&quot;

it only exists on IE6. IE7 and Firefox are OK.</description>
		<content:encoded><![CDATA[<p>i found a related bug.</p>
<p>in server side a.aspx :</p>
<p>Response.Redirect(&#8220;test.aspx?v=123#a&#8221;);</p>
<p>in test.aspx:</p>
<p>Request["url"] is &#8220;123#a&#8221;</p>
<p>but Request["url"] should be &#8220;123&#8243;</p>
<p>it only exists on IE6. IE7 and Firefox are OK.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Object Caching 452/456 objects using disk: basic

Served from: www.michikono.com @ 2012-02-10 17:24:34 -->
