Currently developing a web app that sometimes need a specific URL parameter. For example, I am typing this parameter in the URL bar:
...Page.aspx?user=chantal.côté
Firefox and Chrome will automatically encode the URL like this:
...Page.aspx?user=chantal.c%C3%B4t%C3%A9
But Internet Explorer doesn’t encode automatically the URL, so I get an error with this symbol � (when debugging). It all works well when I type ...Page.aspx?user=chantal.c%C3%B4t%C3%A9 but I don’t want to do that!
Is there somewhere that I need to explicitly tell Internet Explorer to encode the URL?
Presumably your web app doesn’t work by getting users to manually type a query string into their browser. Try creating a test HTML page and have the following in it:
Open this test page in IE, and click the link. The characters in the query string will be correctly encoded. It seems that when you manually put stuff in the address bar, IE won’t URL-encode it for you, but hopefully this fact is irrelevant to your app.