title: Why does OpenURI return a 404, when the parsed URL works fine in browser?
body: <p>I'm trying to screen-scrape a URL containing special characters like the Danish character <code>'ø'</code>.</p>
  
  <p>The URL is:</p>
  
  <pre><code>url = "http://www.zara.com/dk/da/dame/tilbehør/tilbehør/stribet-hue-c271008p2195502.html"
  </code></pre>
  
  <p>In order to have OpenURI recognize it as a valid URL, I do:</p>
  
  <pre><code>url = Addressable::URI.parse(url).normalize.to_s
  </code></pre>
  
  <p>and parse it with:</p>
  
  <pre><code>doc = Nokogiri::HTML(open(url))
  </code></pre>
  
  <p>which returns:</p>
  
  <pre><code>OpenURI::HTTPError: 404 Not Found
  </code></pre>
  
  <p>I have no clue why OpenURI returns a 404, because the normalized URL works fine in a browser. </p>
  
  <p>Why this is the case and what I have to do to fix it?</p>