Internet Explorer AutoIT 对象和 UTF-8 编码
我正在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题出在服务器端。 Internet Explorer 对象对于任何编码都没有问题。
Problem is on the server side. Internet explorer object has no problem with any encoding.