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. How to pass words which contains special character (as Réservation) in javascript in ASP.NET

How to pass words which contains special character (as Réservation) in javascript in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nethelptutorial
4 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.
  • S Offline
    S Offline
    swapnilbhavsar
    wrote on last edited by
    #1

    Hi I am developing an application in ASP.NET USING c#. In that , I am using javascript for on mouse-over on my icon and showing some message.But these messages are in french like Réservation. So here is special character as `. So it gives me error in javascript as UnTerminated String. Please let me know if any body knows solution. Swapnil Bhavsar

    E V 2 Replies Last reply
    0
    • S swapnilbhavsar

      Hi I am developing an application in ASP.NET USING c#. In that , I am using javascript for on mouse-over on my icon and showing some message.But these messages are in french like Réservation. So here is special character as `. So it gives me error in javascript as UnTerminated String. Please let me know if any body knows solution. Swapnil Bhavsar

      E Offline
      E Offline
      Eduard Keilholz
      wrote on last edited by
      #2

      Place a \ sign in front var msg; msg = 'Please enter \'Some Text\' here';

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      V 1 Reply Last reply
      0
      • S swapnilbhavsar

        Hi I am developing an application in ASP.NET USING c#. In that , I am using javascript for on mouse-over on my icon and showing some message.But these messages are in french like Réservation. So here is special character as `. So it gives me error in javascript as UnTerminated String. Please let me know if any body knows solution. Swapnil Bhavsar

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

        I think the document charset needs to be like Unicode right. I have encountered similar issues using ALT+145 (æ) character in .JS file. But the same works from .ASPX page. :mad: :)

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        1 Reply Last reply
        0
        • E Eduard Keilholz

          Place a \ sign in front var msg; msg = 'Please enter \'Some Text\' here';

          .: I love it when a plan comes together :. http://www.zonderpunt.nl

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

          No. I don't think it is that straight-forward. Some characters are blocked in .JS file. They work from .ASPX page. Check out the other reply I have given to the asker, whose permalink is here: http://www.codeproject.com/script/comments/forums.asp?msg=2134086&forumid=12076#xx2134086xx[^]

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          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