Search code examples
vbscriptmessagebox

How to display latin characters in vbscript MsgBox


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:

enter image description here

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


Solution

  • 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"