Previous Next

Thread: National charset problem use Request.QueryString method on IIS 7

Last post 06-23-2008 9:23 PM by anilr. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 06-11-2008, 7:37 AM

    National charset problem use Request.QueryString method on IIS 7

    Hi,

    I'm a classic ASP developer and my sites running on IIS 6.0 platform. I want move my sites to IIS 7 platform, but i have problem Request.QueryString method.

     Example;

     http://localhost/test.asp?message=Adı Soyadı

    test.asp 

    ---------------------------------------------------------------------------------------------------------

    <%@ Language=VBScript CodePage=1254%>

    <%

    Response.CharSet="windows-1254"

    Response.Write Request.QueryString("message")

    %>

    ------------------------------------------------------------------------------------------------------------------------------

    The code return following value 

     Ad? Soyad?

    I can't escape() function, can I set IIS 7 property this problem?

    Thanks.

  • 06-11-2008, 8:40 AM In reply to

    • asidana
    • Top 200 Contributor
    • Joined on 03-20-2008, 12:02 PM
    • Posts 16

    Re: National charset problem use Request.QueryString method on IIS 7

    try to save your file.asp as UTF-8 and put meta http-equiv="content-type" content="text/html; charset=utf-8" in to html head section
  • 06-11-2008, 10:08 AM In reply to

    Re: National charset problem use Request.QueryString method on IIS 7

    Thanks for your suggestion, but my problem is still continue.

     

  • 06-11-2008, 10:44 AM In reply to

    • asidana
    • Top 200 Contributor
    • Joined on 03-20-2008, 12:02 PM
    • Posts 16

    Re: National charset problem use Request.QueryString method on IIS 7

    Try below but save it as UTF-8 not ansi 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    </head>
    <body>
    <%
    Response.Write Request.QueryString("message")
    %>
    </body>
    </html>

  • 06-11-2008, 10:55 AM In reply to

    Re: National charset problem use Request.QueryString method on IIS 7

    yes, certainly saved utf-8. but result is not different :(

  • 06-11-2008, 3:18 PM In reply to

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

    Re: National charset problem use Request.QueryString method on IIS 7

    Are you on vista rtm?  This bug was fixed in vista sp1.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-12-2008, 4:25 AM In reply to

    Re: National charset problem use Request.QueryString method on IIS 7

    Thanks, i was installed sp1 and no problem :)

  • 06-23-2008, 4:31 AM In reply to

    Re: National charset problem use Request.QueryString method on IIS 7

    Hi, I'm facing the similar problem which the system will display ?? (Question Mark) when get the value from URL by using method request.querystring if the parameter value is in chinese character. This problem only happend when i upgade to window server 2008. Everything is work fine in the window server 2003. Any different setting need to be done in order to make it work?

    Thank you.

    Cherrie

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

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

    Re: National charset problem use Request.QueryString method on IIS 7

    Please look at this

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (9 items)
Page view counter