Skip to content
⌘ NSIS Forum Archive

Display of readme file

5 posts

perdrix#

Display of readme file

When NSIS displays the readme file it doesn't cope very well with none US-ASCII characters.

For example I'd included a Russian name (Михаил Тимофеев using Cyrillic characters) in my (mostly) English readme and it just got completely messed up (

Do you think you could update the code so unicode files (UTF-8/16) will display correctly?

Thanks
David
Anders#
If it is a plain .txt file then yes, you should build a Unicode installer (Unicode True) and use a UTF 8 or 16 encoded .txt file.

In a ANSI installer, the Russian text will only display correctly on Russian systems (technically, the default codepage on the system needs to be set to something that supports those characters).

If you are using a .rtf file then I assume it should work automatically as long as your editor encodes non-ASCII characters as Unicode with the correct RTF syntax.
perdrix#
I added a line

Unicode True

at the front of my script, but the readme display was still incorrect it displayed:

Михаил Тимофеев instead of Михаил Тимофеев

This was using:

##!include "MUI2.nsh"
!verbose 4

# Want to display Unicode readme
Unicode True

SetCompressor /SOLID lzma

!include "MUI.nsh"
!include "MUI_EXTRAPAGES.nsh"
and

!insertmacro MUI_PAGE_README "${DSS_README_FILE}"
to display the readme file. What did I do wrong?

Thanks
David