![]() |
#1 |
Junior Member
Join Date: Feb 2022
Posts: 3
|
![]()
NSIS 3.08 Compile NSIS Script with Chinese annotations,
I have tried some Chinese comment text can be compiled, some Chinese comments can not be compiled, for example: "步" The first line can be compiled, the second line will report an error. All script: code: Processing script file: "D:\Installation\test.nsi" (ACP) Bad text encoding: D:\Installation\test.nsi:2 Error in script "D:\Installation\test.nsi" on line 2 -- aborting creation process |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
Save .nsi file as UTF-8 with BOM or UTF-16 with BOM (Unicode in Notepad).
The compiler reads and validates each line before processing comments. This is perhaps a design flaw but it is tricky to fix. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 | |
Junior Member
Join Date: Feb 2022
Posts: 3
|
![]() Quote:
It's a weird thing. ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Feb 2022
Posts: 3
|
Yes, you can try to save the above three lines of script as utf-8 format, compile with NSIS 3.08, it will report an error.
In addition, I can compile the same script with nsis-2.46.5-unicode. https://www.scratchpaper.com/announc...-46-5-released nsis-2.46.5-Unicode-setup.exe |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|