Well, yeah i'm not able to decode quoted-printable decoded messages, so i need help. I need to decode quoted-printable email messages. I'm using this code:
That works for 'subject' and 'from' headers, but doesn't work for bodies.
Regex hexRegex = new Regex(@"(\=([0-9A-F][0-9A-F]))", RegexOptions.IgnoreCase);
value = hexRegex.Replace(value, new MatchEvaluator(HexMatchEvaluator));
value = value.Replace('_', ' ');
static string HexMatchEvaluator(Match m)
{
int dec = Convert.ToInt32(m.Groups[2].Value, 16);
char character = Convert.ToChar(dec);
return character.ToString();
}
I've searched for this on the net and the examples i've found didn't work either. Can someone help me?