Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 92025

Summary: GB18030: The Mongolian characters(4-bytes) can't be displayed in hover.
Product: [Eclipse Project] Platform Reporter: Cheng xu <xucheng>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The Mongolian characters(4-bytes) can't be displayed in hover.
none
Screenshot of simple moving mouse without F2 key
none
HTML file in 18030 encoding
none
GB18030 Characters range(GB18030, Unicode, UTF8) and example none

Description Cheng xu CLA 2005-04-19 23:23:00 EDT
OS:		Windows XP
Language:	Simplified Chinese
Build level:	20050418
JDK version:	J2RE 1.4.2 IBM Windows 32 build cn142sr1a-20050209 (JIT 
enabled: jitc)

Summary: GB18030: The Mongolian characters(4-bytes) can't be displayed in hover.

Steps to recreate problem: 
1. Create a java project.
2. Create a java class, enter [unicode (Extension A)3400 and unicode(Mongolian 
set) 1827] as class name, and then click Finish button.
3. Move mouse to above class name.
4. Press F2 key to view the information 
	--> Problem: The Mongolian characters can't be displayed in hover.

Expected Result:  The Mongolian characters could be correctly displayed in 
hover.

Remark:
1. The screen capture is attached.
2. No such problem in RHEL4.0 and SLES9 platform.
3. 4-bytes character range:
CharSet		GB18030 Range		Unicode
--------------------------------------------------------
Extension A	0x8139EE39-0x82358738	0x3400-0x4DB5
Uigur		0x81318132-0x81319934	0x060C-0x06FE
Tibetan		0x8132E834-0x8132FD31	0x0F00-0x0FCF
Mongolian	0x8134D238-0x8134E337	0x1800-0x18A9
Yi Syllables	0x82359833-0x82368F30	0xA000-0xA48F
Yi Radical	0x82368F31-0x82369435	0xA490-0xA4C6

4. Before executing above steps, all the fonts have been set to GB18030 
character set from menu Windows -> Preference -> General -> Appearance -> 
Colors & Fonts.
Comment 1 Cheng xu CLA 2005-04-19 23:24:26 EDT
Created attachment 20098 [details]
The Mongolian characters(4-bytes) can't be displayed in hover.
Comment 2 Dani Megert CLA 2005-04-20 05:13:15 EDT
Do you see it correctly when simply moving the mouse and wait for the hover
(instead of pressing F2)?
Comment 3 Cheng xu CLA 2005-04-20 05:44:46 EDT
Created attachment 20110 [details]
Screenshot of simple moving mouse without F2 key

Yes, when just simple moving mouse to the class name(without press F2 key), the
hover can correct display Mongolian char.
Comment 4 Dani Megert CLA 2005-04-20 06:13:39 EDT
That's what I expected. The problem is in the Browser widget which is used when
pressing F2.
Comment 5 Felipe Heidrich CLA 2005-04-20 14:09:25 EDT
What is the name of font you are using ?
Comment 6 Cheng xu CLA 2005-04-20 20:23:13 EDT
The font name is SimSun18030. 
You can get GB18030 Support Package (English) from Microsoft site. Here is the 
address:
http://www.microsoft.com/downloads/details.aspx?
displaylang=en&FamilyID=fc02e2e3-14bb-46c1-afee-3732d6249647
Comment 7 Felipe Heidrich CLA 2005-04-21 12:15:52 EDT
Can you view a html file in your IE containg the characters (3400 and 1827) ?

No font in my system can display these characters, I had to install 
SimSun18030 to be able to see them. The font substitution (FontLink) doesn't 
use this new font, so you need to set the font of the widget to SimSun18030 or 
it won't work.
Comment 8 Felipe Heidrich CLA 2005-04-21 13:44:08 EDT
For these character you can't relie on font linking (font substitution). You 
need to set the right font in the widget. Here is the problem, for the Browser 
widget calling setFont doesn't help. You would need to specify the font in the 
html, something like: <FONT FACE="SimSun-18030"> text </FONT>

Comment 9 Cheng xu CLA 2005-04-21 23:13:53 EDT
Created attachment 20217 [details]
HTML file in 18030 encoding
Comment 10 Cheng xu CLA 2005-04-21 23:20:53 EDT
Created attachment 20218 [details]
GB18030 Characters range(GB18030, Unicode, UTF8) and example

If the file saved as GB18030 encoding, IE browser can recognize all the words.

Please see below example.
Prerequisite:
1. Install GB18030 support package for OS
2. Set all items in Controller->Displayer->Outlook->Advance to SimSun18030
fonts
3. Set all the fonts in Eclipse to SimSun18030 from menu
Windows->Preference->General->Appearance->Colors & Fonts.
4. Set IE fonts to SimSun18030, and encoding to GB18030.

Making the file from Eclipse
1. Create a file named with "18030.txt", copy GB18030 chars to it.
2. Rename the file to "18030.html".
3. Look for this file from File Manager and open it with IE browser.
	-> all the GB18030 code can be recognized.

To view the file in Hex format, you can find GB18030 encode are here.

I submit a html file in GB18030 encoding and a word file for GB18030
range(GB18030, Unicode, UTF8) for your reference.
Comment 11 Felipe Heidrich CLA 2008-06-04 14:55:55 EDT
closing as wont fix

These chars are not natively supported by windows xp. You have to set the right font in the control in order to display them.
In IE you can change the font in Control Panel -> Internet Options.