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 20331

Summary: I18N - Japanese characters are appeared incorrect in Output Window.
Product: serverplugins Reporter: hiroshiy <hiroshiy>
Component: TomcatAssignee: Milan Kuchtiak <mkuchtiak>
Status: VERIFIED FIXED    
Severity: blocker CC: akemr, jf4jbug, keiichio
Priority: P2 Keywords: I18N
Version: -FFJ-   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: screen shot 1: Japanese characters are appeared incorrect in Output Window.
screen shot 2: Japanese characters are appeared correctry in the terminal.

Description hiroshiy 2002-02-08 11:26:58 UTC
To Reproduce:

1. From [Filesystems] tab in [Explorer] window, execute for any webmodule
   (e.g. right click a jsp file in "CD Shop Cart", which is bundled in FFJ),
   and select [Execute].

2. Messages are appeared in Output Window, but, japanese characters are 
   appeared incorrect.

3. From Terminal, open the log file of tomcat
   (<FFJ_HOME>/tomcat401/logs/$hostname__log.YYYY-MM-DD.txt), 
   japanese characters are appeared correctry.
Comment 1 hiroshiy 2002-02-08 11:28:28 UTC
Created attachment 4621 [details]
screen shot 1: Japanese characters are appeared incorrect in Output Window.
Comment 2 hiroshiy 2002-02-08 11:29:18 UTC
Created attachment 4622 [details]
screen shot 2: Japanese characters are appeared correctry in the terminal.
Comment 3 _ rkubacki 2002-02-08 13:08:59 UTC
Not sure what is the reason - Tomcat, our plugin module or terminal
emulation in IDE.

Ales, can you look at this?
Comment 4 akemr 2002-02-08 14:22:11 UTC
Probably duplicate of #18866

*** This issue has been marked as a duplicate of 18866 ***
Comment 5 Keiichi Oono 2002-03-27 14:31:06 UTC
Would you investigate this bug again?
The problem of Output Window has been closed, but we still have this
problem in build 020321.
The log ($FORTE4J_HOME/tomcat401/*.log) files contain multibyte
characters, because Tomcat includes localized resources. If Tomcat is
executed in Japanese environment, the log files contain Japanese. 
Comment 6 _ rkubacki 2002-03-27 16:13:58 UTC
Do you mean that messages are corrupted when the IDE run with japanese
locale and Tomcat write japanase chars to log?
Comment 7 Keiichi Oono 2002-03-28 06:36:20 UTC
Yes, you are right.
The Tomcat writes Japanese to log file, and displayed messages are
corrupted on Output Window.
By selecting "View Context Log File", that Japanese log is displayed
correctly in the editor window.
Comment 8 Keiichi Oono 2002-03-28 12:55:22 UTC
I guess the problem is in RandomAccessFile class at
Tomcat40DataObject.java, because readLine() does not support encoding.
Please use FileReader.read or other method which support encoding.
Comment 9 Milan Kuchtiak 2002-04-10 16:04:50 UTC
Fixed for Orion FCS.

Thank you Keiichi for help.
Comment 10 hiroshiy 2002-04-11 02:23:46 UTC
I've verified the fixing in "FFJ, EE 4.0 EA (Build 020410_1)"
Thank you very much !!! - Hiroshi
Comment 11 Jesse Glick 2002-12-23 16:35:49 UTC
Consistent use of the I18N keyword.