I'm using the OpenPop library to read emails. I have the problem that when reading the body of the Email, the library modifies a character.
See the following example:
Email body:
Diseño
Code c#:
OpenPop.Pop3.Pop3Client objPOP3 = new OpenPop.Pop3.Pop3Client();
OpenPop.Mime.Message message = default(OpenPop.Mime.Message);
OpenPop.Mime.MessagePart plainTextPart = default(OpenPop.Mime.MessagePart);
string bodyMailTxt = "";
objPOP3.Connect(Host, Port, UseSSL);
objPOP3.Authenticate(User, Password);
message = objPOP3.GetMessage(1);
plainTextPart = message.FindFirstPlainTextVersion();
bodyMailTxt = plainTextPart.GetBodyAsText();
Code vb:
Dim objPOP3 As New OpenPop.Pop3.Pop3Client
Dim message As OpenPop.Mime.Message
Dim plainTextPart As OpenPop.Mime.MessagePart
Dim bodyMailTxt As String = ""
ObjPOP3.Connect(Host, Port, UseSSL)
ObjPOP3.Authenticate(User, Password)
message = objPOP3.GetMessage(1)
plainTextPart = message.FindFirstPlainTextVersion()
bodyMailTxt = plainTextPart.GetBodyAsText()
bodyMailTxt
value is "DiseÃf±o", which replaced the ƒ (latin small letter F whit hook) for f (latin small letter F).
I'd have to do to make this not happen?