+1 vote

Text body of an incoming email is not the same before and after saving the email in eml format

When receiving a text email (from an iPhone for example), I can get the text body correctly. But, once I have saved the email in eml format, the text body is not the same anymore. When I open the eml file, the "é" character have been changed into "=C3=A9", for example.
Can you tell me how I can get the Email.Message.Text exactly as it was when I received the email, before saving it to eml?

by

1 Answer

0 votes

Eml data saved to disk (same is true for email transfer) are encoded.

Usually quoted printable or base 64, depending on the data.
For non ASCII text usually quoted printable is used for raw byte data
(email attachments) Base64 is usually used.

=C3=A9 are 2 bytes - representing unicode character - latin small
letter e with acute: é.

Can you tell me how I can get the Email.Message.Text exactly as it was when I received the email, before saving it to eml?

IMail.Text contains decoded text.

by (297k points)
...