我有一个使用mailcore2的邮件应用程序。我用表情符号发了邮件。它可以在safari上查看表情符号 - Gmail和Apple Mail(Mac& iOS)。但它在我的应用程序(UIWebView)上查看错误的表情符号。我调试并看到所有函数htmlRending of mailcore2渲染错误的表情符号: - [MCOMessageParser htmlBodyRendering]; - (MCOIMAPMessageRenderingOperation *)htmlRenderingOperationWithMessage:(MCOIMAPMessage *)消息文件夹:(NSString *)文件夹 - (MCOIMAPMessageRenderingOperation *)htmlBodyRenderingOperationWithMessage:(MCOIMAPMessage *)消息文件夹:(NSString *)文件夹
从我的应用发送电子邮件html正文:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px 'Apple Color Emoji'}
span.s1 {font-family: 'Apple Color Emoji'; font-weight: normal; font-style: normal; font-size: 18.00pt}
</style>
</head>
<body><p class="p1"><span class="s1"></span></p>
</body>
</html>
&#13;
但是当我用mailcore2来渲染html:
时
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title></title>
<meta name="Generator" content="Cocoa HTML Writer" />
<style type="text/css">
/*<![CDATA[*/
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px 'Apple Color Emoji'}
span.s1 {font-family: 'Apple Color Emoji'; font-weight: normal; font-style: normal; font-size: 18.00pt}
/*]]>*/
</style>
</head>
<body>
<p class="p1"><span class=
"s1">ððððððððð©âð©âð§âð¦ð¤ð¤ð¼</span></p>
</body>
</html>
&#13;