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 194334

Summary: Japanese is garbled in the output window.
Product: platform Reporter: yukii
Component: Output WindowAssignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: normal Keywords: I18N
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description yukii 2011-01-14 03:51:31 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

In IRB Japanese is displayed normaly. But, it is garbled in the output window.
Comment 1 Martin Entlicher 2011-01-14 17:06:39 UTC
Can you please assure that you have set the correct encoding? The encoding is visible in <Userdir>\var\log\messages.log
You can change the encoding by -J-Dfile.encoding=<...> option.
What do you mean by IRB? Are Japanese characters displayed correctly in editor?
Comment 2 yukii 2011-01-15 12:10:36 UTC
Thank you Mr. Martin for your comments.

I found that the output window of japanese version of NetBeans uses the Sift-JIS encoding. And my project's encoding is UTF-8. So, this mismatch caused this trouble. 
I fixed this trouble by changing the project encoding to Shift-JIS.

Could you tell me whether NetBeans can change the character encoding for the output window ? If it can do so, I could write code in my favorite encoding, and I'll be happy.

IRB is the Interactive Ruby shell, you can open it by right-clicking a Ruby project node and choosing Ruby Shell(IRB).
In IRB code input and output are in the same environment, so encoding problem does not exist.

Thank you again.
Comment 3 Martin Entlicher 2011-01-31 16:39:42 UTC
The output window should use the default platform encoding AFAIK. If you need UTF-8, try to run NetBeans with -J-Dfile.encoding=UTF-8 switch, this should switch whole NetBeans, including Output Window int UTF-8 encoding.
Comment 4 yukii 2011-02-01 13:34:29 UTC
Thank you Martin.
My problem was resolved.
Some combinations of japanese character were garbled in Shift-JIS encoding.
But UTF-8 encoding does not cause that problem.