Previous Next

Thread: Non english letters in request url:s is replaced with question mark

Last post 10-03-2008 7:27 AM by gabruu. 12 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (13 items)

Sort Posts:

  • 03-18-2008, 6:18 AM

    Non english letters in request url:s is replaced with question mark

    I don't know if this is a ASP.NET or IIS issue, but maybe someone can point me in the right direction.

    I have an asp.net Framework 2.0 application that is moved from an IIS 5.0 environment to IIS 7.0, Server 2008. When running the app in Integrated pipeline mode all request url:s with non english letters, like the swedish letters å, ä, ö is replaced with a question mark (?) in the query string. If i switch to run the app in Classic mode everything works fine. If the request url is url encoded it works too, but we have a lot of users that are used to create links without the need to url encode them. And it doesn't matter what encoding the site is using, it is using ISO-8859-1 as both request and response encoding, I have tried switching to utf-8 without any improvement. Does anyone have any idea?

  • 03-18-2008, 10:27 AM In reply to

    Re: Non english letters in request url:s is replaced with question mark

    Hi Benjamin,

    Interesting to say the least.  Is there anything in the event log?  What locale is your system configured to process Unicode charactors.

    Control Panel > Regional and Language Settings > Administrative tab.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 03-18-2008, 12:11 PM In reply to

    Re: Non english letters in request url:s is replaced with question mark

    Hi,

    The locale is Swedish (Sweden), and there is nothing in the event log. I relly appriciate if you can help, I have spent several hours with it and haven't found anything on any forum about it.

  • 03-18-2008, 12:29 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,236

    Re: Non english letters in request url:s is replaced with question mark

    I have forwarded the thread to asp.net developers - meanwhile, if you can cook up a small repro (with url and server-side code which uses/displays it) - that would probably speed up the investigation.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 03-18-2008, 7:08 PM In reply to

    • tmarq
    • Top 150 Contributor
    • Joined on 06-11-2002, 2:44 PM
    • 42
    • Posts 25

    Re: Non english letters in request url:s is replaced with question mark

    Benjamin,

    Unfortunately, you've found a bug.  We will be fixing this in the next service pack.  In the meantime you can work around the problem by running in classic mode, using HttpRequest.RawUrl to access the query string, or by URL encoding characters above 0x7F.  I apologize for the inconvenience.  Thank you for reporting this issue.

     -Thomas

  • 03-19-2008, 3:49 AM In reply to

    Re: Non english letters in request url:s is replaced with question mark

    Thank you for the answer, i'll stick to classic mode until the next service pack. Is there an estimated time of arrival for the service pack?

     /Benjamin

  • 03-19-2008, 9:32 AM In reply to

    • tmarq
    • Top 150 Contributor
    • Joined on 06-11-2002, 2:44 PM
    • 42
    • Posts 25

    Re: Non english letters in request url:s is replaced with question mark

    I think the next service pack will be available this summer, but I don't have an exact date.  The fix is already queued up for the next service pack, and will definitely be part of it.

    Thanks,
    Thomas

  • 06-23-2008, 9:53 PM In reply to

    Re: Non english letters in request url:s is replaced with question mark

    Hi,

    May i know what do you mean by classic mode? Can i have the example of your code? I had search the solution for a fews day already but still cant manage to solve it, i really need to solve the problem asap. Thank you.

     Cherrie

  • 06-23-2008, 10:13 PM In reply to

    • tmarq
    • Top 150 Contributor
    • Joined on 06-11-2002, 2:44 PM
    • 42
    • Posts 25

    Re: Non english letters in request url:s is replaced with question mark

    The IIS7 application pool can be configured to run in what's called Classic Mode.  This allows ASP.NET to run in a mode that is compatible with IIS6.  By default, the application pool is in what's called integrated mode.  See Application Pool properties in IIS Manager.

  • 06-23-2008, 11:47 PM In reply to

    Re: Non english letters in request url:s is replaced with question mark

    It work now after i change to classic mode. Thank you very much.

     

    Cherrie

  • 10-02-2008, 4:01 AM In reply to

    • gabruu
    • Top 200 Contributor
    • Joined on 04-17-2008, 5:14 AM
    • Posts 18

    Re: Non english letters in request url:s is replaced with question mark

    anilr i am having the same problem here but switching to "classic mode" does not change anything.

    Does this issue still exists on windows server 2008 + iis7?

    my foreign characters are not recognized from the querystring... i am using CLASSIC ASP!!

    thanks for any help

    classic asp ajax library
    http://www.webdevbros.net/ajaxed/
  • 10-02-2008, 12:27 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,236

    Re: Non english letters in request url:s is replaced with question mark

    There is no such known issue with classic asp - please start a new thread and provide repro script etc.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-03-2008, 7:27 AM In reply to

    • gabruu
    • Top 200 Contributor
    • Joined on 04-17-2008, 5:14 AM
    • Posts 18

    Re: Non english letters in request url:s is replaced with question mark

    anilr i have created a new topic http://forums.iis.net/p/1152158/1881097.aspx#1881097.

    maybe you could look into it. thanks.

    classic asp ajax library
    http://www.webdevbros.net/ajaxed/
Page 1 of 1 (13 items)
Page view counter