Reputation: 1831
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?
Upvotes: 1
Views: 3965
Reputation: 1
I had the same issue, i saved the vbs file encoded in ANSI (option available in the "save as" dialog box in notepad). It worked fine for me and spared me the hassle of using chr(#) (yes i'm lazy)
context : script running on windows 10 virtual machine on debian host.
Upvotes: 0
Reputation: 8033
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"
Upvotes: 3