I'm writing an application where POP mail is one functionality. Not a big problem, but the mail including headers comes as quoted_printable, which means extended ASII characters are displayed like =E9 etc. Does anybody know of a method to parse e-mail messages and convert these codes to the correct characters

Need a fuction to avoid strange characters in e-mail
Ido F.
-Ari
Janice_777
Seyfert
-Ari
Aknght
I have tried to accomplish what I'm after by using Regular Expressions, but it is not an optimal solution as the escape codes changes depending on whether the character is sent as a Stand Alone character or within a word. RegEX will have to be used for cleaning up the messages, but I need help with the rest.
kritchai vanchainavin
using System.Text;
... ' Normal declarations and stuff
public string ConvertString(string s)
{
' Create the encodings
Encoding ucode = Encoding.Unicode;
Encoding ascii = Encoding.ASCII;
' Convert() takes a byte array, so convert the string to one
byte[] beforeEncoding = ucode.GetBytes(s);
' Do the actual encoding conversion
byte[] afterEncoding = Encoding.Convert(ucode, ascii, beforeEncoding);
' Return it to a string
return ascii.GetString(afterEncoding);
}
Hope this helps!
-Ari
Raja Ratheesh
= iso-8859-1 Q Andr=E9_Colbi=F6rnsen =
And the subject, <b>Cola®</b>, like this
= iso-8859-1 B Q29sYa4= =
Any other suggestions