EncodingException</code> - if UTF-8 is not available</dd><dt><span class="strong">Since:</span></dt>
  <dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="fileToURL(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fileToURL</h4>
<pre>public static&nbsp;java.net.URL&nbsp;fileToURL(java.io.File&nbsp;file)
                              throws java.net.MalformedURLException</pre>
<div class="block">Convert a File to a URL.
 File.toURL() does not encode characters like #.
 File.toURI() ha