Archive: Need Help with MBCS


Need Help with MBCS
Hi all,

I am writing an installer that handles 4 languages, one of them being Japanese.

We are using some custom strings in the installer. We recently have received the translations of those strings from a translation company, but they are in a UTF-8 formatted file.

How do I easily convert the japanese data to MBCS (I understand NSIS uses it for compatibility with windows 9x), so I can integrate these translations to my LangStrings declarations?

Thanks for any help.
:up:


If you are using Windows NT, set the language for non-Unicode applications to Japanese in the Control Panel, open the file in Notepad and save it as ANSI.


Omg, thanks that makes so much sense. It worked. Thanks for the fast reply :)


And here I was using Visual Studio.....Thanks for the tip Joost!


I have the same issue. Translations provided in Unicode but need to convert to MBCS to use with LangString (with non-Unicode version of NSIS). I have 18 languages to deal with including Russian, Turkish, Asian, Western European. I'm developing on an XP machine. I guess recommendation is to load Unicode into Notepad and save as ANSI filetype. Can you use something like Microsoft's AppLocale to get the correct codepage for Notepad to do this properly? Any recommendations?


iconv can do the trick.


Thanks kichik. I found iconv to work except for Unicode Chinese to CP936/CP950 (as I recall). I was able to use the AptEdit editor to do these.