为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

HTML messages with windows-1252 encoding are displayer incorrectly

  • 2 个回答
  • 1 人有此问题
  • 14 次查看
  • 最后回复者为 louis.abraham

more options

I receive messages sent from outlook on windows. These messages are in French and contain special characters like "é" that are not displayed correctly (�). They contain both a text/plain and a text/html part.

Here is what they look like:

``` x-ms-exchange-generated-message-source: Mailbox Rules Agent Content-Type: multipart/alternative; boundary="_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_" MIME-Version: 1.0

--_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: quoted-printable

CONFIDENTIAL with =E9

--_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_ Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: quoted-printable

<meta http-equiv='3D"Content-Type"' content='3D"text/html;' charset="3Dwindows-1="> <meta name='3D"Generator"' content='3D"Microsoft' word="" 15="" (filtered=""> <style><!-- REMOVED FOR CONCISENESS --></style> CONFIDENTIAL with =E9

--_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_-- ```

If I select View > Text Encoding > Western, it works in both HTML and plain text. However, there is no way to make this setting persist. I set the default encoding of incoming emails to Windows-1252 but View > Text Encoding still shows Unicode when I re-open the message.

I receive messages sent from outlook on windows. These messages are in French and contain special characters like "é" that are not displayed correctly (�). They contain both a text/plain and a text/html part. Here is what they look like: ``` x-ms-exchange-generated-message-source: Mailbox Rules Agent Content-Type: multipart/alternative; boundary="_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_" MIME-Version: 1.0 --_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: quoted-printable CONFIDENTIAL with =E9 --_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_ Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1= 256"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- REMOVED FOR CONCISENESS --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"FR" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:bre= ak-word"> CONFIDENTIAL with =E9 </body> </html> --_000_57bba51dacf74c928778457599539435CSIHMS05hdscetsi_-- ``` If I select View > Text Encoding > Western, it works in both HTML and plain text. However, there is no way to make this setting persist. I set the default encoding of incoming emails to Windows-1252 but View > Text Encoding still shows Unicode when I re-open the message.

所有回复 (2)

more options

the issue is windows-1252 is not a registered charset in Thunderbird.

See https://www.w3schools.com/charsets/ref_html_ansi.asp for some background. Thunderbird uses the ISO standard not the Microsoft modified version.

more options

Hi Matt, Thank you a lot for your answer, I really appreciate it! I am not sure about windows-1252, but Thunderbird can definitely read this encoding. Furthermore, I have reasons to think that "Western" is the other name of windows-1252: when I reply to an email that I'm reading with windows-1252, here is what I see bottom right of the screen https://i.imgur.com/KX9tClF.png