title: encoding URL parameter in Ruby, and correctly decoding it with php
body: <p>I want to encode an URL parameter with Ruby.
  The URL parameter not encoded is like this:    </p>
  
  <pre><code>index.php?hash=tlNmgzWNFelvIH1o9ZAWFifpB3RwZOh6DCt5OdIfJCWLo9iZSRONWk1D1rEnSxUp|hi8JcsAHkznPkDFfaS1+xw==
  </code></pre>
  
  <p>Then I want to decode it from PHP!</p>
  
  <p>I tried ruby:</p>
  
  <pre><code>ERB::Util::url_encode(param)
  </code></pre>
  
  <p>And then in Php urldecode($param); does not seem to work!</p>