Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Encoding Internetcodepage和Messagecodepage之间的区别_Encoding_Outlook - Fatal编程技术网

Encoding Internetcodepage和Messagecodepage之间的区别

Encoding Internetcodepage和Messagecodepage之间的区别,encoding,outlook,Encoding,Outlook,在查看outlook时,我可以找到两个属性,它们告诉我mailitem的代码页 Internet代码页属性 PR_消息_代码页->0x3FFD0003 这两个不同的代码页值的意图是什么 当查看带有HTML正文的电子邮件时,HTML中也可能有编码 那么,解释HTML正文的正确方法是什么呢 在UTF-8编码的当前邮件中,internetcodepage返回65001(correkt),PR_消息_代码页返回(1252),html编码tat表示UTF-8 我可以依赖internetcodepage

在查看outlook时,我可以找到两个属性,它们告诉我mailitem的代码页

  • Internet代码页属性
  • PR_消息_代码页->0x3FFD0003 这两个不同的代码页值的意图是什么
当查看带有HTML正文的电子邮件时,HTML中也可能有编码

那么,解释HTML正文的正确方法是什么呢

在UTF-8编码的当前邮件中,internetcodepage返回65001(correkt),PR_消息_代码页返回(1252),html编码tat表示UTF-8

我可以依赖internetcodepage吗? 另一位开发人员告诉我,这有时没有返回正确的值,但他没有这方面的示例

那么,找到邮件的HTML正文和/或主题编码的最佳方法是什么呢?

请参阅


如果您只处理HTML正文,请查看HTML标题以检查它是否指定了编码

对于其他属性(如果存储未启用Unicode),我通常使用PR_INTERNET_CPID。如果不可用,则使用PR_MESSAGE_代码页

我不知道是否有理由选择一个而不是另一个