Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. special character in web link

special character in web link

Scheduled Pinned Locked Moved ASP.NET
questioncom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thomasa
    wrote on last edited by
    #1

    How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code: string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false); Unfortunately it somhow changes the special characters so it ends up lik

    http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€

    so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas

    E V 2 Replies Last reply
    0
    • T thomasa

      How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code: string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false); Unfortunately it somhow changes the special characters so it ends up lik

      http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€

      so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      Try using the unicode escape for the characters you want.

      Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

      1 Reply Last reply
      0
      • T thomasa

        How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code: string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false); Unfortunately it somhow changes the special characters so it ends up lik

        http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€

        so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        You should check the MSDN for the magic that Server.URLEncode and Server.URLDecode does.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups