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.
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!
Reassigned to module "core/output".
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?
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
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.
Created attachment 27194 [details] successful chinese text in output window screenshot