javascript - How to convert an email message from ISO-8859-1 to UTF8 string in Javascript?
问题描述
I am getting data from a pop3 server and am unable to translate the text from ISO-8859-1 to utf-8. The text is below:
"To: "=?ISO-8859-1?B?Y24=?=" <cn@example.com>"
?ISO-8859-1?B?RndkOiBSZTogVVNDQQ==?=
Tried a few utf8 libraries but it didn't work.
Anyone know how to approach this problem?
Is it supposed to just translate the data in receiving email?
Can anyone point a direction? Many thanks.
解决方案
推荐阅读
- javascript - JavaScript setTimeout 0 阻塞页面渲染?
- entity-framework-core - 如何使用 Entity Framework Core 2.1 定义 1:0 关系?
- web - 如何在 Web Api 项目中应用垃圾回收?
- ruby-on-rails - Mongoid has_many / belongs_to has 'undefined method' 错误
- angular - Angular 6,在 ng build index.html 在控制台中出现错误之后
- selenium - 在一个命令行中使用选项卡选项发送 2 个字段的键
- php - 无法下载 ZipArchive 的 PHP 动态生成的 Zip 文件
- c# - 动态表达式不适用于动态对象
- sql - 将 Select 查询的结果存储在 sql 文件 PSQL 中以供稍后使用
- c# - 如何合并 ASP.Net Core 配置文件中的多个数组?