Announcement

Collapse
No announcement yet.

Email-a-friend link: Accented characters for French text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Email-a-friend link: Accented characters for French text

    THE KNOWLEDGE BASE Give the following code... but for my french site, all accented character give bad characters in the email created...

    How do I correct this !

    Our french site is http://www.videoson.com

    THE KNOWLEDGE BASE Give the following code...
    How do I create an email-a-friend link?
    Put the following in your overall layout just above the </head> line:

    <script type="text/javascript">
    function testkey(ev){
    return ((ev.which ? ev.which : ev.keyCode) != '13');
    }

    function tellfriend(anc, pname){
    var friend = document.getElementById('tell-' + anc);
    var thisloc=location.href.replace(/%23/g, '#');
    if (thisloc.indexOf('#') == -1) // no anchor so add one in
    {
    thisloc += '#' + anc;
    }
    else // replace existing anchor with our own
    {
    thisloc = thisloc.replace(/#.*/, '#' + anc)
    }
    if (friend.value != '') {
    location.href = 'mailto:' + friend.value + '?subject=' + escape('Take a look at ') + pname
    + '&body=' + escape('I saw ' + thisloc + ' and thought you would be interested.');
    }
    }
    </script>



    Enter the following code into your product layout:

    Enter e-mail address to tell a friend
    <input type=text id="tell-<Actinic:Variable Name="EncodedProductAnchor"/>" value="" size="40" onKeypress="return testkey(event);"/>
    <input type=button value="SEND" onclick="tellfriend('<Actinic:Variable Name="EncodedProductAnchor"/>','<actinic:block php="true">echo rawurlencode('<Actinic:Variable Name="ProductName" encoding="perl" selectable="false" />');</actinic:block>');">
    "LABOR IMPROBUS OMNIA VINCIT"

    #2
    I found the error in OUTLOOK parameters

    I just uncheck the case "use mailto with UTF-8" and the email looks correct !!!

    thanks for your answer...

    Do you know how automatically call the Outlook signature of the user in the created email ?
    "LABOR IMPROBUS OMNIA VINCIT"

    Comment


      #3
      You could try replacing the fragment
      Code:
      escape('Take a look at ') + pname
      with
      Code:
      escape('Take a look at ' + pname)
      Your question re Outlook is not possible. You have no control over which of the many email clients your customers will be using. Indeed some (webmail users, internet cafe users, etc) may not have an email client available at all.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thaks for all your answers

        For outlook user signature, if it's not possible, I will do without !!!

        Best Regards
        "LABOR IMPROBUS OMNIA VINCIT"

        Comment

        Working...
        X