简体   繁体   English

NSIS MessageBox中的特殊字符(带波浪号)

[英]Special characters (with tilde) in NSIS MessageBox

I'm having some trouble with the following message box and a spanish character: 我在使用以下消息框和西班牙语字符时遇到了一些麻烦:

MessageBox MB_OK "Se ha producido un error durante la instalación del Framework .NET."

That is actually showing: 这实际上表明:

Se ha producido un error durante la instalaci?n del Framework .NET.

Without the 'ó' character. 没有'ó'字符。

I think the language is correctly loaded, with the following lines in the start of the file: 我认为该语言已正确加载,文件开头包含以下几行:

;Loads the Nsis language file, necessary for unistall messages.
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Spanish.nlf"

I have seen some solutions, but they used very different code and I bet there is a very simple way to do this. 我已经看到了一些解决方案,但是他们使用了截然不同的代码,我敢打赌,有一种非常简单的方法可以做到这一点。 Thanks a lot! 非常感谢!

PD: I'm using NSIS 2.46. PD:我正在使用NSIS 2.46。 I know I should upgrade to 2.50, but it's not doable right now. 我知道我应该升级到2.50,但是目前无法执行。

Which version of NSIS do you use? 您使用哪个版本的NSIS? Are you sure the Spanish language file (.nlf for classic GUI and .nsh for MUI2) are correct? 您确定西班牙语文件(传统GUI的.nlf和MUI2的.nsh)正确吗?

If they are OK then try to build your installer with UNICODE version of NSIS - download from http://www.scratchpaper.com/ 如果可以,请尝试使用NSIS的UNICODE版本构建安装程序-从http://www.scratchpaper.com/下载

It fully supports UNICODE - with all special characters (like in Slovak language (ľščťžýáíéäňú) or also Chinese, Japanese, ... 它完全支持UNICODE-具有所有特殊字符(例如斯洛伐克语(ľščťžýáíéäňú)或中文,日文,...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM