title: How to handle special characters in web.config rewrite rule?
body: <p>I'm getting errors on my rewrite rules when the URL contains a special character:</p>
  
  <p>This URL <a href="http://www.example.com/bungalow/rent/state/texas/street/exlo%C3%ABr/exlo%C3%ABr" rel="nofollow noreferrer">http://www.example.com/bungalow/rent/state/texas/street/exloër/exloër</a>
  with this rewrite rule:</p>
  
  <pre><code>    &lt;rule name="rentals by proptype+state+city+street"&gt;
        &lt;match url="^([a-zA-Z0-9-+]+)/rent/state/([a-zA-Z-+]+)/street/([a-zA-Zë-+]+)/([0-9a-zA-Zë-+']+)$" /&gt;
        &lt;action type="Rewrite" url="search_new.aspx?proptype={R:1}&amp;amp;state={R:2}&amp;amp;city={R:3}&amp;amp;street={R:4}" /&gt;
      &lt;/rule&gt;
  </code></pre>
  
  <p>results in a 500 error</p>
  
  <p>This URL <a href="http://www.example.com/bungalow/rent/state/texas/street/exlo%C3%ABr/exlo%C3%ABr" rel="nofollow noreferrer">http://www.example.com/bungalow/rent/state/texas/street/exloër/exloër</a>
  with this rewrite rule:</p>
  
  <pre><code>    &lt;rule name="rentals by proptype+state+city+street"&gt;
        &lt;match url="^([a-zA-Z0-9-+]+)/rent/state/([a-zA-Z-+]+)/street/([a-zA-Z-+]+)/([0-9a-zA-Z-+']+)$" /&gt;
        &lt;action type="Rewrite" url="search_new.aspx?proptype={R:1}&amp;amp;state={R:2}&amp;amp;city={R:3}&amp;amp;street={R:4}" /&gt;
      &lt;/rule&gt;
  </code></pre>
  
  <p>results in a 404 error</p>
  
  <p>How can I handle special characters in the rewrite rule?</p>
  
  <p><strong>update 1</strong></p>
  
  <p>The URL in question is displayed with a <code>ë</code> character, but when I copy the address, it's escaped to this <code>%c3%abr</code>
  With this rule I still get a 404 error:</p>
  
  <pre><code>    &lt;rule name="rentals by proptype+state+city+street"&gt;
        &lt;match url="^([a-zA-Z0-9-+]+)/rent/state/([a-zA-Z-+]+)/street/([a-zA-Z%-+]+)/([0-9a-zA-Z%-+']+)$" /&gt;
        &lt;action type="Rewrite" url="search_new.aspx?proptype={R:1}&amp;amp;state={R:2}&amp;amp;city={R:3}&amp;amp;street={R:4}" /&gt;
      &lt;/rule&gt;
  </code></pre>
  
  <p>So I guess the real question would be, how to handle <code>%</code> characters in the rewrite rule?</p>