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. Server.Form and incorrect words

Server.Form and incorrect words

Scheduled Pinned Locked Moved ASP.NET
helphtmlsysadminquestion
3 Posts 2 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.
  • G Offline
    G Offline
    gus_br
    wrote on last edited by
    #1

    Hi, I have an ordinal HTML file. I want to get some form variables on my ASPX code, OK, and it works perfectly, setting the action of the HTML form to my ASPX page and submitting it, then, on my ASPX page, I can get the variables thought the Request.Form["varName"] method. The problem begins when I have some characters with accent, like a city name here in Brazil, e.g.: 'São Paulo'. I just get 'So Paulo' in my ASPX page. I've tried UrlDecode, but without any help. Does anybody know any hint that could help me on this case? Thanks in advance guys... bb

    S 1 Reply Last reply
    0
    • G gus_br

      Hi, I have an ordinal HTML file. I want to get some form variables on my ASPX code, OK, and it works perfectly, setting the action of the HTML form to my ASPX page and submitting it, then, on my ASPX page, I can get the variables thought the Request.Form["varName"] method. The problem begins when I have some characters with accent, like a city name here in Brazil, e.g.: 'São Paulo'. I just get 'So Paulo' in my ASPX page. I've tried UrlDecode, but without any help. Does anybody know any hint that could help me on this case? Thanks in advance guys... bb

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      what is the problem, if problem is while saving to database then replace the ' (single quote) with '' (two single quotes) -----

      G 1 Reply Last reply
      0
      • S SABhatti

        what is the problem, if problem is while saving to database then replace the ' (single quote) with '' (two single quotes) -----

        G Offline
        G Offline
        gus_br
        wrote on last edited by
        #3

        Aw, my problem isn't that. I meant when I have, for instance, 'São Paulo' in one input text on my htlm page, I can just get 'So Paulo' (without the 'ã') in my ASPX page via Request.Form. Did you undestand it now? Any hints? Thanks anyways... :] cya

        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