<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Files and URLs</title>
	<link>http://tech.puredanger.com/2008/04/10/files-and-urls/</link>
	<description>Alex Miller's technical blog</description>
	<pubDate>Thu, 08 Jan 2009 22:38:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38645</link>
		<pubDate>Fri, 11 Apr 2008 20:09:02 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38645</guid>
					<description>Huh?  What's the point of that?  That gives you a URL string that's broken as it lacks the proper escaping.</description>
		<content:encoded><![CDATA[<p>Huh?  What&#8217;s the point of that?  That gives you a URL string that&#8217;s broken as it lacks the proper escaping.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eirik</title>
		<link>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38638</link>
		<pubDate>Fri, 11 Apr 2008 19:54:50 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38638</guid>
					<description>what about file.toURI().toURL().externalForm().replaceAll(&quot;%20&quot;, &quot; &quot;);
?
It sure looks ugly, but i've done it quite recently and it works far better than it looks.</description>
		<content:encoded><![CDATA[<p>what about file.toURI().toURL().externalForm().replaceAll(&#8221;%20&#8243;, &#8221; &#8220;);<br />
?<br />
It sure looks ugly, but i&#8217;ve done it quite recently and it works far better than it looks.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38602</link>
		<pubDate>Fri, 11 Apr 2008 18:00:17 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38602</guid>
					<description>URLEncoder is more oriented at encoding HTML forms into URLs.  I'm not sure if it would also cover the escaping of chars in the url path itself.  Certainly possible...</description>
		<content:encoded><![CDATA[<p>URLEncoder is more oriented at encoding HTML forms into URLs.  I&#8217;m not sure if it would also cover the escaping of chars in the url path itself.  Certainly possible&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Arman</title>
		<link>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38594</link>
		<pubDate>Fri, 11 Apr 2008 17:24:16 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38594</guid>
					<description>Wouldn't java.net.URLEncoder/Decoder do the job?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t java.net.URLEncoder/Decoder do the job?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38566</link>
		<pubDate>Fri, 11 Apr 2008 15:36:50 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/04/10/files-and-urls/#comment-38566</guid>
					<description>@Willem - yep, that should work too!

@Martin - I am aware.  I'm actually moving mostly away from URLs to Files anyways but we were already wrappering our URLs in the one case where equals and hashcode came up.</description>
		<content:encoded><![CDATA[<p>@Willem - yep, that should work too!</p>
<p>@Martin - I am aware.  I&#8217;m actually moving mostly away from URLs to Files anyways but we were already wrappering our URLs in the one case where equals and hashcode came up.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
