Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #342925 +++ Build Identifier: I20110407-2200 Eclipse version:I20110407-2200 OS: Ubuntu Linux 10.10 Java Version: JRE 1.6.0 IBM Linux build pxi3260sr9fp1-20110208_03 (SR9 FP1) Locale: ja_JP.utf8 Reproducible: Always Steps to Reproduce: 1.Import the attached project or create a project with either the class or the method name containing DBCS characters. 2.Click on the project, Project->Generate Javadocs. 3.Go to Window->Preferences->General->Webbrowser and select Use internal web browser radio button and check "Default system web browser". 4. Now click on the class name containing dbcs character in Java editor. 5. Click Navigate->Open Attached Javadoc. 6. The text will be shown all garbled. This could be due to the fact that the Javadoc does not have a meta tag that specifies the document is encoded in UTF-8. The project had encoding set to UTF-8. This bug however has a workaround. If you set your browser to External web browser and choose Firefox, the text will be displayed correctly.
According to Harendra (see bug 342925) It works in 3.6 but not 3.7 and 4.1 builds. I suspect that the problem is caused by the switch to WebKitGTK+.
Created attachment 194084 [details] patch The default encoding was not being set for WebKitGTK, the fix is similar to what the Browser's Mozilla implementation does.
fixed > 20110426