Code page detection on taget computer
How can you detect which code page is used by target computer?
I'm making an installer that is using SerbianLatin language file, and it works fine if target computer has nonUnicode language set to Serbian. My problem is that most computers in my country are set to use English for nonUnicode and that makes my <Ä Ä‡ Å¾ Å¡ Ä‘> appear as <Ã¨ Ã¦ Å¾ Å¡ Ã°>.
Now I can live with <c c Å¾ Å¡ dj> (corrections I made manually to language files) until NSIS goes Unicode, but to make that I need to detect codepage of target computer and use SerbianLatin <Ä Ä‡ Å¾ Å¡ Ä‘> or SerbianLatinModified <c c Å¾ Å¡ dj>.
I'm guessing it goes into onInit function (before anything appears on screen) but don't know how to implement it.