正在使用哪种类型的编码? [英] What type of encoding is being used?

查看:87
本文介绍了正在使用哪种类型的编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个程序,其功能之一是提取Multipart电子邮件的HTML部分.

I am currently making a program in which one of its functions is to extract the HTML part of a Multipart email.

我已经很好地完成了这项任务,但是有些字符似乎是我无法弄清楚的一种编码方式,例如

I have accomplished that task fine however there is a type of encoding on some of the characters that I can't seem to figure out e.g.

',' into '=2C'
';' into '=3B'
'=' into '=3D'

,它还会在所有位置随机放置'='.

and it also puts random '=' all over the place.

有人知道这是否有一个解码器(甚至是它的名字)吗?我已经用代码替换了一些东西,但是我可能还缺少很多东西,因为我还没有遇到它们.因此,我想弄清楚编码的类型,以便可以替换所有内容,或者找到已经这样做的库.

Does anyone know if there is a decoder for this (or even what the name of it is)? I have replaced a few things with code, however there are probably plenty more that I am missing because I haven't come across them yet. Thus, I would like to either figure out the type of encoding so I can replace everything, or find a library which has already done so.

P.s.我可能是从Hotmail帐户发送电子邮件的,也许是原因.

P.s. I am sending the email from a hotmail account, if that might be the reason.

推荐答案

这称为引用为-可打印的编码.

不幸的是,来自Microsoft的现有QuotedPrintableStream是内部的,因此您无法使用它.但是,您可以选择Mono项目之一,也可以选择任何一个处理MIME处理的库.

Unfortunately, the existing QuotedPrintableStream from Microsoft is internal so that you cannot use it. However, you could take the one of the Mono project, or of any library dealing with MIME handling.

这篇关于正在使用哪种类型的编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆