title: Ruby on Rails escape umlauts in url
body: <p>I try to post some parameters containing umlauts to a url (PHP Script). So I've to escape the parameters. But Ruby returns me an unexpected string.</p>
  
  <p>PHP:</p>
  
  <pre><code>urlencode("äöü");
  </code></pre>
  
  <p>output: %E4%F6%FC</p>
  
  <p>and RoR:</p>
  
  <pre><code>URI.escape("äöü")
  </code></pre>
  
  <p>output: %C3%A4%C3%B6%C3%BC</p>
  
  <p>or:</p>
  
  <pre><code>CGI.escape("äöü")
  </code></pre>
  
  <p>output: %C3%A4%C3%B6%C3%BC</p>
  
  <p>I'm working on Rails 3.0.5 and Ruby 1.9.2 and my application is setup for UTF-8. Where is my fault or what should I do?</p>
  
  <p>Thanx andi</p>