Old 21st August 2012, 06:32   #1
SunToo
Junior Member
 
Join Date: Apr 2007
Posts: 38
Traditional Chinese displayed with wrong characters

Hi,
under Windows Vista I installed the language pack for traditional Chinese. I configured the system to use traditional Chinese as display language and for non-unicode programs. This works well but some characters are not displayed correctly. The Chinese "full stop" is always displayed as round bracket and double quotes are displayed as something undefined. This happens for Chinese text provided by NSIS as well as for customized text.

If I open the corresponding nsh-files, which contain the strings, on the same system all characters are displayed correctly.

Simplified Chinese also works well.

Is this an NSIS bug or do I make something wrong?
SunToo is offline   Reply With Quote
Old 21st August 2012, 08:09   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 545
Send a message via ICQ to T.Slappy
Do you use Unicode version of NSIS ? -> Download here: http://www.scratchpaper.com/

Cool looking installers with custom design: www.graphical-installer.com
Design NSIS setup Pages easily: www.install-designer.com
Build NSIS installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 21st August 2012, 08:16   #3
SunToo
Junior Member
 
Join Date: Apr 2007
Posts: 38
No, I use the ANSI version. Unfortunately I cannot switch to the UNICODE version currently.
SunToo is offline   Reply With Quote
Old 22nd August 2012, 14:03   #4
SunToo
Junior Member
 
Join Date: Apr 2007
Posts: 38
Ok, obviously nobody can answer my question. So I try it in another way:

Is there anybody that could confirm that the Chinese "full stop" and double quotes are displayed correctly under the same conditions (i.e. Traditional Chinese language pack, ANSI-Version of NSIS etc.)?
SunToo is offline   Reply With Quote
Old 23rd August 2012, 04:51   #5
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 545
Send a message via ICQ to T.Slappy
No, ANSI version of NSIS cannot display correctly such character.

Chinese uses 2bytes per character (Unicode) while ANSI NSIS uses only 1 byte, so your "full stop" character will be truncated and displayed incorrectly.

Cool looking installers with custom design: www.graphical-installer.com
Design NSIS setup Pages easily: www.install-designer.com
Build NSIS installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 23rd August 2012, 05:10   #6
SunToo
Junior Member
 
Join Date: Apr 2007
Posts: 38
Thanks, T.Slappy,

but all other Chinese characters are displayed correctly. Why not these two?
SunToo is offline   Reply With Quote
Old 24th August 2012, 07:02   #7
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 545
Send a message via ICQ to T.Slappy
Hmm I cannot see any Chinese characters in ANSI NSIS (maybe Windows regional settings is wrong?)

The Font you are using is ok?

Cool looking installers with custom design: www.graphical-installer.com
Design NSIS setup Pages easily: www.install-designer.com
Build NSIS installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 24th August 2012, 07:08   #8
SunToo
Junior Member
 
Join Date: Apr 2007
Posts: 38
After you downloaded the language pack for Traditional Chinese you should configure the system to use traditional Chinese as display language. Furthermore you should set the Traditional Chinese for non-unicode programs (Control Panel -> Regional and Language Options). Then your ANSI version should display Chinese characters.
SunToo 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