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
Display of readme file
5 posts
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.
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.
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:
Thanks
David
Unicode True
at the front of my script, but the readme display was still incorrect it displayed:
Михаил Тимофеев instead of Михаил Тимофеев
This was using:
and##!include "MUI2.nsh"
!verbose 4
# Want to display Unicode readme
Unicode True
SetCompressor /SOLID lzma
!include "MUI.nsh"
!include "MUI_EXTRAPAGES.nsh"
to display the readme file. What did I do wrong?
!insertmacro MUI_PAGE_README "${DSS_README_FILE}"
Thanks
David
The readme needs a BOM, in Notepad it is called Unicode in the Save As dialog.
YES! Thank you (on Windows 10 that is UTF8 with BOM), and it now works a treat!
David
David