将 Emacs 与 Outlook 结合使用时出现字符编码转换错误

发布于 2024-10-18 08:08:00 字数 757 浏览 4 评论 0原文

我目前正在使用 outlookedit.el 从 Outlook 来回电子邮件,以便在与人们。它工作得很好,除非我必须使用特殊字符,在本例中是瑞典语中使用的“åäö”。

当我在 Outlook 中打开包含这些字符的电子邮件时(Cc o e),它们在 Emacs 中看起来都正常,但当我将更改保存回 Outlook 时(Cc o s)” åäö”会变成“à¤à¶”,切换回 Emacs (Cc o e),它们会被 Emacs 正确转换为“< em>åäö”再次。

如果我不使用 outlookedit.el 在 Outlook 和 Emacs 之间复制/粘贴文本,则字符转换似乎可以完美执行,但我宁愿不必这样做。

我尝试在选项下强制 Outlook 将电子邮件编码为 US-ASCII、ISO-8859-1 和 UTF-8 -> 邮件格式 -> 国际选项...但结果总是一样的。

我如何(最好)修改我的 .emacs 以正确处理字符转换或重新配置 Outlook 以使这些字符的往返工作正常?

我当前的 Emacs 配置可在 http://github.com/dholm/dotemacs/ 进行检查。

I'm currently using outlookedit.el to roundtrip e-mails from Outlook in order to remain sane when corresponding with people. It is working beautifully except for when I have to use special characters, in this case "åäö" which are used in swedish.

When I open an e-mail containing these characters in Outlook (C-c o e) they all look ok in Emacs but when I save my changes back to Outlook (C-c o s) "åäö" turns into "åäö" switching back to Emacs (C-c o e) they are converted properly by Emacs into "åäö" again.

If, instead of using outlookedit.el I copy/paste text between Outlook and Emacs character conversion appears to be performed perfectly but I would prefer not to have to do it this way.

I've tried to force Outlook to encode e-mails both into US-ASCII, ISO-8859-1 and UTF-8 under Options -> Mail Format -> International Options... but the result is always the same.

How can I (preferably) modify my .emacs to handle the character conversion properly or reconfigure Outlook to make roundtripping these characters work?

My current Emacs configuration is up for inspection at http://github.com/dholm/dotemacs/.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疧_╮線 2024-10-25 08:08:00

我的猜测是,在 Shell 和 Outlookedit.el 之间,您的字符编码发生了一些变化。您可以尝试将缓冲区的默认编码系统设置为 UTF-8、ASCII 或 CP-1252(Windows 默认值)。

My guess is that between the Shell, and outlookedit.el, something is happening with your character encoding. You could try setting the default coding system of your buffer to either UTF-8, ASCII, or CP-1252 (The windows default).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文