inno setup 中文乱码问题_ISS脚本中的消息出现Inno Setup Unicode编码问题

We have a script setup to run with Inno Setup Unicode compiler. The installer at the moment supports English, German and French.

It has been brought to our attention that the encoding for our custom messages in French aren't correct. The custom message files are saved as UTF-8 so there should not have been an encoding issue. We verified we were using the Unicode compiler and not ANSI by accident.

Expected Custom message:

French.UninstallOldVersionPrompt=Il semble y avoir une version antérieure de Rubberduck installée sur ce système pour %s.There seems to be a previous version of Rubberduck, qui devra d'abord être désinstallée. Procéder à la désinstallation?

The file is saved as UTF-8, so it shouldn't have had encoding issues. What went wrong?

For more details, you can read up on the Github issue

解决方案

The .iss file needs to have UTF-8 BOM, if it includes Unicode/UTF-8 strings.

In your case, it's the French.CustomMessages.iss that is missing the BOM.

The German.CustomMessages.iss has the BOM, that's why it works correctly with German.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值