Skip to content Skip to sidebar Skip to footer

Foreign Letters Failing When Sending Emails

I sometimes have to send emails in a German and I need to use ö ä ß etc... I have text written containing these letter and using alert() they appear just fine. I have code to se

Solution 1:

The following articles shows how to decode the letters using javascript :

Javascript decoding html entities

functiondecodeHtml(html) {
    var txt = document.createElement("textarea");
    txt.innerHTML = html;
    return txt.value;
}

HTML Entity Decode

Using jquery:

varTitle = $('<textarea />').html("Chris&apos; corner").text();

Post a Comment for "Foreign Letters Failing When Sending Emails"