#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2008
    Posts
    70
    Rep Power
    0

    Accents disappear in mailto link


    Have a mailto link that inserts #title# from an Access table,
    into the Subject line of email.

    Title is: Québec 2011 Information .... In IE the subject line displays as: QuACbec 2011 Information

    Québec accents display correctly on the web pages; ... ideas on how to fix appreciated. Cheers
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,127
    Rep Power
    4304
    You need to URL-encode it.

    Are you using ASP Classic or ASP.Net (or something else)?
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2008
    Posts
    70
    Rep Power
    0
    Originally Posted by frapple
    Have a mailto link that inserts #title# from an Access table,
    into the Subject line of email.

    Title is: Québec 2011 Information .... In IE the subject line displays as: QuACbec 2011 Information

    Québec accents display correctly on the web pages; ... ideas on how to fix appreciated. Cheers
    ColdFusion ... here is the code ....

    <a class="a3" href="mailto:bob@bob.com?subject=Request%20for%20information&amp;body=Request information for: #details.title# %0D%0A%0D%0APlease%20include%20your%20name%20so%20we%20can%20personalize%20return%20information.">Re quest Information</a>

    everything works fine ... how would you URL encode the href?

    Cheers ...M
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,265
    Rep Power
    968
    Wrap your variable (NOT the entire URL since most of it is already URL encoded) in URLEncodedFormat().

    Or, remove all of the URL encoding you already have and use URLEncodedFormat() on the entire URL string.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2008
    Posts
    70
    Rep Power
    0
    Originally Posted by kiteless
    Wrap your variable (NOT the entire URL since most of it is already URL encoded) in URLEncodedFormat().

    Or, remove all of the URL encoding you already have and use URLEncodedFormat() on the entire URL string.
    Thanks Kiteless ... talked client into going with onboard form that can be databased with variable recipient control ... senders province determines which rep gets the form request. The complexity upcharge got my grandson a new netbook

IMN logo majestic logo threadwatch logo seochat tools logo