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 - Japanese is garbled in the output window.
Summary: Japanese is garbled in the output window.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@platform
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2011-01-14 03:51 UTC by yukii
Modified: 2011-11-16 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.