Archive: Language file does not support Unicode


Language file does not support Unicode
I'm using Unicode for translation a NSIS language file into Vietnamese. I get error msg "Error while loading language file: Invalid language file!".

Currently version of NSIS (2.0a7) does not support Unicode ? :blah:


AFAIK NSIS is *not* coded to handle Unicode (at least internally)... so that means it probably doesn't understand a file containing unicode characters either.

[edit] Scratch that - decided I should know better than to comment when I don't have enough information to answer you properly, wait for the big guns (KiCHiK and co) to arrive :D [/edit]


*pam pam pam pam pam* :D

Actually, you were right Sunjammer ;)
NSIS does not support Unicode, and doesn't work with Unicode internally. As a result, you can't load Unicode files as language files. Use good(?) old MBCS and it will work.

There is no Unicode support because NSIS is designed to run on all windows versions, not only NT.


It should be possible to build a binary that works on all systems (i.e. non-unicode binary) that can read a unicode file, the two are separate issues are they not?


And how would NSIS know if it is a Unicode file? IsTextUnicode only works on NT... Do you know of another way to test for a file being Unicode that will work on 9x too?

[edit]Yes, I can dynamically load the function but[/edit]
It is so simple to convert to MBCS...


Out of curiosity
MBCS = MultiByte
DBCS is a form of MBCS (double byte)... have you ever seen any other form of MBCS???


Nope, but that's how Microsoft calls it most of the time. MultiByteToWideChar for example.


Now there is a Unicode version of NSIS so this will now work. Please look for the Unicode thread in the NSIS discussion. It explains how to download and test this version of NSIS.