How to replace the following characters
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.
精彩评论