I am saving emails of a pst file as eml.Then i am opening the file having the eml and then saving it in a string ie msg.In the content of msg i am getting small boxes wherever there is a space.please help me resolve this problem.I am using the following code
byte[] bytes = File.ReadAllBytes(EmlPath); String msg = System.Text.Encoding.GetEncoding("utf-8").GetString(bytes);
Regards Sanchaita Chakraborty
Can you check what kind of char is in the msg String where you see the small boxes? if it's an encoding issue as it seem to be, you could replace that chars with a space.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.