Hi Superficial,
I tried changing the .eml to .txt, then opening the .txt version in VI Improved and loading it onto the webpage, but still nothing.
I'm trying some sort of decoding function right now. (how do I make code tags? I thought it was [code]?)
[code]
function quoted_printable_decode(str) {
// Remove soft line breaks.
var temp = str.replace(/=\r\n/gm, '');
// Decode all equal signs followed by two hex digits.
var decode = function(sMatch, sHex) {
return String.fromCharCode(parseInt(sHex, 16));
};
return temp.replace(/=([0-9A-F]{2})/gm, decode);
}
alert(quoted_printable_decode('If you believe that truth=3Dbeauty, then surely=20=\r\nmathematics is the answer.');
[/code]
So the alert shows the statement with the correct ASCII values in place of the hex values, but when I try to do my .eml file, I do get characters now, but they're definitely not the right ones--they actually seem to be characters from a different encoding.
I've also tried just adding this to my HTML:
<META http-equiv='content-type' content='text/html; charset=windows-1256' />
But still nothing. I'm really stumped.