开发者

How to replace the following characters

开发者 https://www.devze.com 2023-03-15 14:49 出处:网络
I have eml files which I parse them by using streamreader in c#. The issue is that these eml files contain =C5=9F and =C4=B1 respectively ş and ı

I have eml files which I parse them by using streamreader in c#. The issue is that these eml files contain =C5=9F and =C4=B1 respectively ş and ı

I'm using the following code but I assume its not the right place to set the encoding which the producer of eml file is encoding it before I parse the produced file therefore I assume I need to replace them with the appropriate Unicode chars. fsEML is an instance of an filestream class which I created it with file.re开发者_StackOverflowad().

StreamReader sr = new StreamReader(fsEML, System.Text.Encoding.UTF8,false);


This encoding is called Quoted-printable. There is some functionality in .Net to decode it, but it's not exposed nicely, see this answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消