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

Bug 56437

Summary: [Font/Colour] Eclipse 3.0 M8 Encoding Problem
Product: [Eclipse Project] Platform Reporter: pawa <pawamaba>
Component: UIAssignee: Kim Horne <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clinker, daniel_megert, douglas.pollock, eclipse, hanavy, kraml, Sam.Mesh
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 56915    
Bug Blocks:    

Description pawa CLA 2004-03-27 00:46:42 EST
I use Windows XP Home edtion with simple chinese character set. When I first 
run M8, all my chinese words in eclipse can not display correctly. I changed 
system font to chinese font with GB2312 encoding, there is no problem with my 
chinese words. In my environment, all former edtions is perfect by default 
setting.
Comment 1 Andre Weinand CLA 2004-03-27 04:21:13 EST
Since we didn't change the default encoding behavior in M8, and since your fix did not involve changing 
the encoding of Eclipse in any way, this sounds more like a font problem.
Rafael, what do you think?
Comment 2 Rafael Chaves CLA 2004-03-28 10:24:12 EST
Agreed. If the problem was restricted to XML files (the ones we have special
handling so far), I would suspect of the new encoding support. If it is a
general problem for all text/Java/... files, then I would suspect of a
presentation problem.

Pawa, can you confirm the problem was happening to text files in general?
Comment 3 pawa CLA 2004-03-29 01:11:46 EST
I try again.It is it is a general problem, all my files 
( .java,.txt,.html,ect... ) include chinese can not display correctly.
Comment 4 Andre Weinand CLA 2004-03-29 03:19:58 EST
And the fix is to change the default text font?

Could you please give us the names of the Eclipse default text font in M7 and M8?
Comment 5 mark CLA 2004-03-29 03:38:43 EST
i meet the problem too. Any Chinese charactor in any editor can not be 
displayed properly
Comment 6 pawa CLA 2004-03-29 03:59:19 EST
Yes, the fix is to change the default text font to chinese font.
The Eclipse default text font in M7 and M8 both are "Courier New-regular-10"
Comment 7 Andre Weinand CLA 2004-03-29 04:08:26 EST
Moving to platform.ui for comment.
Comment 8 Song JaeYong CLA 2004-03-29 20:47:00 EST
I'm too..
I use Korean and all Korean characters broken.
If I use Gulim font(TTF) then the characters display well,
but if I use FixedSys(Bitmap Font), then that problem occur.
In Eclipse 2.x.x and till 3.0M7 I didn't meet that problem.
I think this is not an encoding problem but font display problem, too.

And in addition to that in Eclipse 3.0Mx, I cannot enter
2-byte characters(Korea) to Find/Replace Dialog.
In 2.x.x that problem did not occurred.

I use Windows 2000 SP4.(Korean edition)
Comment 9 Pak Young-rok CLA 2004-03-29 22:36:33 EST
"Courier New" does not have any Korean or Chinese character set. But earlier 
version of Eclipse can show Korean characters by using other Korean 
font, "Batang" mapped with "Courier New" font. And almost all editors do that. 
So I want to choose "Courier New" for English characters and other font 
like "Batang" for Korean characters.
Comment 10 pawa CLA 2004-03-30 00:42:36 EST
How do you choose "Courier New" for English characters and other font for 
Korean characters ?

It seems that eclipse can only choose one font for all characters.
Comment 11 Pak Young-rok CLA 2004-03-30 01:19:04 EST
I don't know the internal mechanism. Just I want that. Earlier version of 
Eclipse and many other editors like EditPlus seems to do that automatically. In 
that cases, I just choose one font that does not contain Korean font, but I can 
see Korean characters written in "Batang" font. but Eclipse 3.0 M8 doesn't do 
that. I want Eclipse 3.0 M8 to do the same thing as other editors.
Comment 12 pawa CLA 2004-03-30 05:17:17 EST
That is ! I prefer to let us choose english font and other 2-byte characters 
font individually.
Comment 13 Douglas Pollock CLA 2004-03-30 10:44:32 EST
This is getting coverage in the newsgroups.  Support for zh_CN is a "must-have" 
for the 3.0 final release.  Adding to M9. 
Comment 14 Dani Megert CLA 2004-03-31 02:52:59 EST
*** Bug 56692 has been marked as a duplicate of this bug. ***
Comment 15 Dani Megert CLA 2004-03-31 02:54:53 EST
*** Bug 56855 has been marked as a duplicate of this bug. ***
Comment 16 Kim Horne CLA 2004-03-31 10:19:30 EST
Question for the original poster:

In your previous installs, did you have the chinese language pack installed? 
This is not available for 3.0 yet so that that would (partially) explain why the
editors are no longer rendering chinese.  When they ship the default text editor
font for Chinese will be able to render the characters properly.

The other part of this is that the StyledText widget (that drives the editor
presentations) has undergone a significant rewrite.  This might explain why
things worked in M7 but not in M8.  It's possible that there was some hackery in
the old widget that let it all work properly even when the text font was set to
Courier.
Comment 17 Kim Horne CLA 2004-03-31 10:45:52 EST
Tod has tracked down a bug in StyledText that seems to be a likely candidate for
the root of this problem.  Please see Bug 56915.
Comment 18 pawa CLA 2004-04-01 03:02:00 EST
There is any matter with chinese language pack ? Anyway, I did not use the 
chinese language pack with any edition of eclipse .
Comment 19 Michael Van Meekeren CLA 2004-04-15 09:02:03 EDT
so is this fixed now? can we close this bug?
Comment 20 Kim Horne CLA 2004-04-15 12:04:10 EDT
With Tods help, this has been verified to be fixed against I20040413.
Comment 21 Tod Creasey CLA 2004-05-19 12:19:50 EDT
Verified in 20040520
Comment 22 Kim Horne CLA 2004-07-06 09:32:46 EDT
Closing to keep a tidy house.  Pardon the spam.