Autohotkey ComObjActive Outlook的变音符号编码错误 [英] Autohotkey ComObjActive Outlook wrong encoding of umlauts

查看:111
本文介绍了Autohotkey ComObjActive Outlook的变音符号编码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我使用Autohotkey来预填充带有文本和附件的电子邮件.

Currently i use Autohotkey to prefill Emails with Text and Attachments.

tml_body=
  (
  <html>
    <body>

      test

    </body>
  </html>
  )

m := ComObjActive("Outlook.Application").CreateItem(0)
m.Subject := "subject with umlauts äüö "
m.To := "foo@bar.com"
m.CC := "foo@bar.com"
m.HTMLBody := html_body
m.Display
;m.attachments.add("filepath")

WinWait Untitled - Message (HTML)
WinActivate Untitled - Message (HTML)

使用此脚本将打开一个新的Outlook邮件,主题为带有变音符号äüö的主题" 在hmtlbody中,类似&uuml;的东西起作用,但是在主体中却没有.

Using this script opens a new outlook mail with the following subject "subject with umlauts äüö " In the hmtlbody something like &uuml; works but not in the subject.

如何设置或编码主题以正确显示特殊字符/变音符号?

How can i set or encode a subject to display special characters / umlauts correctly?

推荐答案

尝试将代码保存在 UTF-8 格式.

Try saving the code in UTF-8 format.

例如

  • 在记事本中,选择文件->另存为...->编码-> UTF-8
  • 在Notepad ++中选择编码->以UTF-8编码

这篇关于Autohotkey ComObjActive Outlook的变音符号编码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆