Internet Explorer AutoIT 对象和 UTF-8 编码

发布于 2025-01-01 09:11:58 字数 512 浏览 3 评论 0原文

我正在 AutoIT 脚本中创建 IE 导航:

$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, 10, 80, 600, 480)
$oIE.navigate("http://myurl.com/raw.php")

它工作正常,但不显示 UTF-8 字符。

铁。我看到 ä™ 而不是 ęĹĽ 而不是 ż,等等...

我试图设置这在我的 raw.php 文件中使用:

header('Content-Language: pl');
header('Content-Type: text/html; charset=utf-8'); 

但不幸的是,它没有帮助。默认 Internet Explorer 对象编码仍然不支持 UTF-8。

你有什么建议吗?

I'm creating an IE navigation in my AutoIT script:

$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, 10, 80, 600, 480)
$oIE.navigate("http://myurl.com/raw.php")

It is working fine, but it does not display the UTF-8 characters.

Fe. I see Ä™ instead of ę, ĹĽ instead of ż, etc...

I was tryin to set this on my raw.php file using:

header('Content-Language: pl');
header('Content-Type: text/html; charset=utf-8'); 

But unfortunately, it doesn't help. Default Internet Explorer object encoding still doesn't support UTF-8.

Have you any suggestions?

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

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

发布评论

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

评论(1

笔芯 2025-01-08 09:11:58

问题出在服务器端。 Internet Explorer 对象对于任何编码都没有问题。

Problem is on the server side. Internet explorer object has no problem with any encoding.

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