Special Characters in mailto

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anand Iyer
    New Member
    • May 2007
    • 6

    Special Characters in mailto

    Hello Everyone

    Is it possible to have special characters in the mailto syntax?

    I was able to add the "&" by using %26 but now I am stuck with "#" and the trademark symbol.

    Can anyone help me out?

    Thanks in advance
    Anand Iyer
  • brettl
    New Member
    • Sep 2007
    • 41

    #2
    You can use "&#35" for # and "&#169" for "©" Just add a ";" to the end of each entity
    Last edited by brettl; Sep 25 '07, 07:09 PM. Reason: i can't spell

    Comment

    • Death Slaught
      Top Contributor
      • Aug 2007
      • 1137

      #3
      Originally posted by Anand Iyer
      Hello Everyone

      Is it possible to have special characters in the mailto syntax?

      I was able to add the "&" by using %26 but now I am stuck with "#" and the trademark symbol.

      Can anyone help me out?

      Thanks in advance
      Anand Iyer
      Sup Anand lyer, Welcome to TSDN!

      here's a list of character entitys and how to properly use them.


      Hope it helps, Death

      Comment

      • Anand Iyer
        New Member
        • May 2007
        • 6

        #4
        Thanks guys !!!

        But I am still not able to get the characters when I am using Internet Explorer.

        The characters are displaying fine in Firefox but not in IE.

        Any ideas??

        Thanks
        Anand Iyer

        Comment

        • Death Slaught
          Top Contributor
          • Aug 2007
          • 1137

          #5
          Originally posted by Anand Iyer
          Thanks guys !!!

          But I am still not able to get the characters when I am using Internet Explorer.

          The characters are displaying fine in Firefox but not in IE.

          Any ideas??

          Thanks
          Anand Iyer
          Np Anand lyer.

          So are you using the names or the numbers of the character entities? The names are fairly new so not all browsers support them, so it's recommended you use the numbers. example &#38 is an ampersand &. I think it was somewhere in the tutorial I provided above.

          Hope it helps, Death

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            # is %23. There is none for copyright.

            There may be a 'charset' issue with IE but I don't know.

            Comment

            • Anand Iyer
              New Member
              • May 2007
              • 6

              #7
              Originally posted by Death Slaught
              Np Anand lyer.

              So are you using the names or the numbers of the character entities? The names are fairly new so not all browsers support them, so it's recommended you use the numbers. example &#38 is an ampersand &. I think it was somewhere in the tutorial I provided above.

              Hope it helps, Death
              Hi

              The problem i am facing is that the mailto syntax does not suppory "&" or "#". Thats causing the problem for me. I got it for "&" as "%26". And am trying to get it for characters like "#" and the trademark symbol. Kindly let me know if you come across any of these.

              Thanks
              Anand Iyer

              Comment

              • Anand Iyer
                New Member
                • May 2007
                • 6

                #8
                Originally posted by drhowarddrfine
                # is %23. There is none for copyright.

                There may be a 'charset' issue with IE but I don't know.
                Hello drhowarddrfine

                Thanks a lot for this. Just let me know if you find it for the trademark symbol.

                Also do you have any idea about how to handle foreign characters??

                Any help would be most welcome.

                Thanks
                Anand Iyer

                Comment

                Working...