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 - I18N - Japanese characters are appeared incorrect in Output Window.
Summary: I18N - Japanese characters are appeared incorrect in Output Window.
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2002-02-08 11:26 UTC by hiroshiy
Modified: 2002-12-23 16:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot 1: Japanese characters are appeared incorrect in Output Window. (15.71 KB, image/gif)
2002-02-08 11:28 UTC, hiroshiy
Details
screen shot 2: Japanese characters are appeared correctry in the terminal. (14.29 KB, image/gif)
2002-02-08 11:29 UTC, hiroshiy
Details

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