如何在 vbscript MsgBox 中显示拉丁字符 [英] How to display latin characters in vbscript MsgBox

查看:52
本文介绍了如何在 vbscript MsgBox 中显示拉丁字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以打开消息框的 vbscript,但是我正在制作该程序的西班牙语版本并且拉丁字符显示效果不佳:

I have a vbscript that open message box, but I'm making an spanish version of the program and the latin characters are not displaying well:

MsgBox "No se ha instalado la Consola de Administración pues debe tener instalado Internet Explorer 8 o superior.", vbExclamation, "Atención"

但是当我执行脚本时,显示的是:

But when I execute the script this is what is displayed:

如您所见,拉丁字符格式不正确,有人可以建议我如何解决吗?

As you can see, the Latin characters are not well formatted, does someone could advise me how to fix it?

推荐答案

你需要使用 chr(#) 等价物

you need to use the chr(#) equivalent

MsgBox "No se ha instalado la Consola de Administraci" + chr(242) + "n pues debe tener instalado Internet Explorer 8 o superior.", vbExclamation, "Atenci" + chr(242) + "n"

这篇关于如何在 vbscript MsgBox 中显示拉丁字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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