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;
}
Using jquery:
varTitle = $('<textarea />').html("Chris' corner").text();
Post a Comment for "Foreign Letters Failing When Sending Emails"