Archive: KOI-8 instead of Win-1251


KOI-8 instead of Win-1251
We received a complaint from a Russian user that our NSIS installer shows the characters in KOI-8 instead of Win-1251. Can anyone explain why this happened and how to solve it?

http://www.kokosov*****tmp/se_screen.gif


NSIS uses the codepage chosen by the user. The user can change the active codepage in the Regional and Language Options control panel in the Advanced tab under Language for non-Unicode programs.


According to the user:

My setting for "language for non-unicode programs" is "Russian" and there is no "koi-8" or "windows-1251" in this list. Windows use only 1251 codepage for GUI, KOI-8 usually is used in unix-based OS. I believe, that when installer detect regional setting, it inserts on screen corresponding part of text, and this part in sources placed in wrong
codepage.

So basically your suggestion does not seem to be the case here?


The installer doesn't detect the regional settings. It simply spills its bytes to the ANSI API and assumes the codepage is correct. NSIS is not Unicode enabled.

That specific page in the image is a custom page and so the strings for it were wrote by you. Did you use the 1251 codepage when you saved the file with those strings? Did the user have anything to to say about the buttons or other pages with translation originating from NSIS translation files?