roy204
17th May 2004 12:26 UTC
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:
Joost Verburg
17th May 2004 12:48 UTC
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.
roy204
17th May 2004 13:24 UTC
Omg, thanks that makes so much sense. It worked. Thanks for the fast reply :)
zimsms
17th May 2004 17:58 UTC
And here I was using Visual Studio.....Thanks for the tip Joost!
kfank
13th May 2008 06:10 UTC
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?
kichik
13th May 2008 22:02 UTC
iconv can do the trick.
kfank
28th May 2008 23:52 UTC
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.