Old 15th March 2007, 20:22   #1
speedwell
Junior Member
 
Join Date: Jan 2007
Posts: 7
Displaying East Asian foreign language characters

Can someone tell me how I can get NSIS to display East Asian languages in an installer. As a test, I'm using the languages.nsi script in the Examples dir.

I select an East Asian language from the menu when the languages.exe installer starts and the text is displayed incorrectly.

I've tried this on a version of Windows XP with the East Asian language extras installed and the region/language settings set to Japanese.

I've had someone try it on a Japanese version of Windows XP.

I believe I have a font that can display the characters installed - ArialUnicode.

What do I need to do in order to get this work?

Thanks.

Speedy.
speedwell is offline   Reply With Quote
Old 15th March 2007, 22:48   #2
goldy1064
Senior Member
 
Join Date: Jun 2005
Posts: 211
You need to change the language for non-Unicode applications to the language you want. This is under the Advanced tab on WinXP under Regional and Language Options.
goldy1064 is offline   Reply With Quote
Old 15th March 2007, 23:20   #3
speedwell
Junior Member
 
Join Date: Jan 2007
Posts: 7
I got it to work on my own (English) version of XP but that doesn't explain why it doesn't work on Japanese versions. I've tried it on several with the same result? Surely people with the Japanese version of XP don't need to do the same thing you mentioned.
speedwell is offline   Reply With Quote
Old 16th March 2007, 22:37   #4
speedwell
Junior Member
 
Join Date: Jan 2007
Posts: 7
I made some progress with this but I'm still blocked.

The problem seemd to stem from the fact I saved my .nsi language specific script as "Unicode (UTF-8 without signature) Codepage 65001". Displaying the .nsi file in a text editor on an East Asian system showed mostly garbage.

When I changed the encoding to "Unicode - Codepage 1200" and resaved, the file looked correct in the text editor.

I thought this would fix the installer but the script compiler bails out on the first line of the included .nsi file:

!include: "installers\windows\lang_ko.nsi"
Invalid command: â–_
!include: error in script: "installers\windows\lang_ko.nsi" on line 1

Any suggestions?
speedwell is offline   Reply With Quote
Old 16th March 2007, 23:26   #5
goldy1064
Senior Member
 
Join Date: Jun 2005
Posts: 211
What I have done is saved each of my language files into a header (nsh) file that is saved in the correct ascii format depending on the language being used. You can determine what the format is by looking at the language files in NSIS\Contrib\language files.
goldy1064 is offline   Reply With Quote
Old 17th March 2007, 04:26   #6
Backland
Senior Member
 
Join Date: Sep 2006
Posts: 150
Also, try saving the file as MBCS.
Backland is offline   Reply With Quote
Old 17th March 2007, 13:49   #7
speedwell
Junior Member
 
Join Date: Jan 2007
Posts: 7
Thanks all - I'll give both a try on Monday when I'm back in the office and report back.
speedwell is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump