I don't think it's related to URL Rewrite; the encoding is relevant indeed. In IIS Manager, please go to .NET Globalization and change Encoding > Requests from utf-8 to iso-8859-1 (I think utf-7 works too, but I took iso-8859-1 from
"Checklist: Securing ASP.NET")
I've upgraded to .Net 3.5 SP1. The question marks have changed to empty squares, but the problem remains. (I have no plans to even try changing Encoding > Requests from utf-8 to iso-8859-1. The site uses UTF-8.)
I still think it is a URL Rewrite problem.
This works perfectly (%C3%A9 = é):
/page.aspx?q=r%C3%A9sum%C3%A9
This, with URL Rewrite transforming it into the above page does not work:
As another workaround, Could be possible to move your rule to the server level (global rule)? It looks that ASP.NET is not behaving correctly during the internal child request. Global rules don't have child request, so it must work fine.
Please let me know. I follow this up with the ASP.NET team, thanks.
OK, this is an issue with Rewrite Module, we must encode the Query String correctly, please send me an email if this is blocking you in order to send you a fix.
Hello i have the same problem here with german umlaute. I have created a topic for it http://forums.iis.net/t/1152253.aspx Is it possible that i get the fix as well ? thanks
rebelde
12 Posts
accented/non-ASCII characters é, í, ß, è
Sep 25, 2008 02:33 PM|LINK
Hi,
Thanks for the URL rewrite module. I expect that it will soon be invaluable.
Rewriting doesn't seem to work for the few accented characters that I tested.
Is there any way to get é and other accented characters rewritten correctly?
The page is in UTF-8 encoding, if that is relevant.
Thanks!
DanielVL
140 Posts
Microsoft
Re: accented/non-ASCII characters é, í, ß, è
Sep 25, 2008 04:25 PM|LINK
Hi,
I don't think it's related to URL Rewrite; the encoding is relevant indeed. In IIS Manager, please go to .NET Globalization and change Encoding > Requests from utf-8 to iso-8859-1 (I think utf-7 works too, but I took iso-8859-1 from "Checklist: Securing ASP.NET")
I'm glad to hear you like the module!
Thanks.
IIS Team
anilr
2343 Posts
Microsoft
Re: accented/non-ASCII characters é, í, ß, è
Sep 25, 2008 04:30 PM|LINK
Also, are you calling Request.QueryString from asp.net in integrated mode - if so, that is a known issue in asp.net which is fixed in .Net 3.5 SP1
Software Design Engineer
IIS Core Server
rebelde
12 Posts
Re: accented/non-ASCII characters é, í, ß, è
Sep 25, 2008 07:41 PM|LINK
Thanks for the responses.
I've upgraded to .Net 3.5 SP1. The question marks have changed to empty squares, but the problem remains. (I have no plans to even try changing Encoding > Requests from utf-8 to iso-8859-1. The site uses UTF-8.)
I still think it is a URL Rewrite problem.
This works perfectly (%C3%A9 = é):
This, with URL Rewrite transforming it into the above page does not work:
I am thinking that it is a bug.DanielVL
140 Posts
Microsoft
Re: accented/non-ASCII characters é, í, ß, è
Sep 25, 2008 08:45 PM|LINK
As another workaround, Could be possible to move your rule to the server level (global rule)? It looks that ASP.NET is not behaving correctly during the internal child request. Global rules don't have child request, so it must work fine.
Please let me know. I follow this up with the ASP.NET team, thanks.
IIS Team
rebelde
12 Posts
Re: accented/non-ASCII characters é, í, ß, è
Sep 26, 2008 07:25 AM|LINK
Daniel,
I tried applying it globally, and it still doesn't work.
I created a simple test page (encoding UTF-8):
If the page is /test/page.aspx:
Rewrite pattern:
Rewrite URL:
/test/page.aspx?q=r%C3%A9sum%C3%A9 - works
/test/r%C3%A9sum%C3%A9 - does not work
Thanks
DanielVL
140 Posts
Microsoft
Re: accented/non-ASCII characters é, í, ß, è
Sep 26, 2008 10:49 PM|LINK
OK, this is an issue with Rewrite Module, we must encode the Query String correctly, please send me an email if this is blocking you in order to send you a fix.
Thanks for reporting this.
IIS Team
rebelde
12 Posts
Re: accented/non-ASCII characters é, í, ß, è
Sep 29, 2008 11:20 AM|LINK
Email sent.
A response from one of the developers. That is exceptionally cool. Thank you and thanks to everybody behind this site and forums.
muratmoon
1 Post
Re: accented/non-ASCII characters é, í, ß, è
Sep 30, 2008 07:27 PM|LINK
I have the same problem for turkish characters. If there is a fix could you send it to me too please?
gabruu
18 Posts
Re: accented/non-ASCII characters é, í, ß, è
Oct 07, 2008 10:00 PM|LINK
Hello i have the same problem here with german umlaute. I have created a topic for it http://forums.iis.net/t/1152253.aspx Is it possible that i get the fix as well ? thanks