View Japanese Encoded EML Subject and Text Body

Hi there, I am trying to get the subject and body text for an EML email file that is encoded in Japanese (iso-2202-jp to be precise).

I have tried the following code, which has not worked:

msg.BodyEncoding = Encoding.GetEncoding(932);
msg.SubjectEncoding = Encoding.GetEncoding(932);

Subsequent accesses to the body and subject properties are not viewed with the correct encoding. How do I get this to work? Thanks!

Hi,

Thanks for considering Aspose.

Could you please post the sample eml file for our testing?

Thanks, ive sent a file to you via email.

We are looking into it and will get back to you shortly.

Is there any progress on this issue? I’ve tried the latest version of Aspose.Network and it is still not working. Thanks

I think this is a problem specifically Japanese (and 7-bit) encoded EML files. Chinese eml files work fine. Thanks!

Hi aneumann,

Could you please tell me how you create the eml files? It is not 100% compliant to the eml rfc. We are still working on its solution.

Hey, that .eml file was provided to us by a client (I’m not sure how it was created).

I’ve checked in Outlook Express, and the .eml loads and displays fine.