Sha256: 29a4e471969329ad8ab1c2885d1077a3814fe62375f8fa8b38a8b9e75f6d5c05

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 87</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">gsub</span>(<span class="ruby-value str">&quot;[&quot;</span>,<span class="ruby-value str">&quot;%5b&quot;</span>).<span class="ruby-identifier">gsub</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.4.1 doc/files/bin/dskexplorer_rb.src/M000008.html