This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61213 - I can not see Chinese word in output windows!
Summary: I can not see Chinese word in output windows!
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-07-21 05:22 UTC by evzhy
Modified: 2008-12-22 23:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
successful chinese text in output window screenshot (56.50 KB, image/png)
2005-11-23 12:21 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description evzhy 2005-07-21 05:22:51 UTC
I want to print a string which content is of Chinese words, but I see just "??".
Please allow user setting the encoding of output window!
Comment 1 Marian Petras 2005-07-27 14:22:29 UTC
Reassigned to module "core/output".
Comment 2 Milos Kleint 2005-07-27 14:30:39 UTC
what version for netbeans are you using?

are you a module developer using netbeans APIs to write to output, or is it in
your application that writes to the standard output?

what operating system?
Comment 3 Milos Kleint 2005-08-01 08:06:09 UTC
from email conversation:

Hello,
I use netbeans 4.1 + mobility pack 7 + wtk2.2.
Yes, I use System.out.println("你好!"); but the result
is ?? ?? not the chinese word in output windows. 
And the same problem occurs in swing browser, if there
is chinese words in html page shown.
I can not solve this by add -J-Dfile.encoding-utf-8 to
netbeans.conf

Comment 4 Milos Kleint 2005-11-23 11:51:26 UTC
It actually works. All you have to do is set the encoding for the project as well.
To do it, get project properties dialog (right-click on project node)
in the dialog, change to the "Run" panel, it has a text field named "VM Options". 
write the -Dfile.encoding=UTF-8 switch there.
Now it should start working, in the output window and in the console as well.

sorry for late resolution.

attaching the screenshot.
Comment 5 Milos Kleint 2005-11-23 12:21:02 UTC
Created attachment 27194 [details]
successful chinese text in output window screenshot