Sha256: 1a9a9a5068c1f4bfce064117f0d441be8f6da6ae477876dc9b502b5bdc04d684

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>uri_encode (bin/dskexplorer.rb)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File bin/dskexplorer.rb, line 81</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uri_encode</span>(<span class="ruby-identifier">s</span>)
        <span class="ruby-comment cmt">#standard URI.escape appears to miss some important characters</span>
        <span class="ruby-identifier">require</span> <span class="ruby-value str">'uri'</span>
        <span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>).<span class="ruby-identifier">sub</span>(<span class="ruby-value str">&quot;[&quot;</span>,<span class="ruby-value str">&quot;%5b&quot;</span>).<span class="ruby-identifier">sub</span>(<span class="ruby-value str">&quot;]&quot;</span>,<span class="ruby-value str">&quot;%5d&quot;</span>)
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dsktool-0.1.5 doc/files/bin/dskexplorer_rb.src/M000007.html