Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 93477

Summary: README: (Plat) DBCS3.1 Double byts strings does not display correctly in Console View while running a profile
Product: z_Archived Reporter: VinceChien <vince.chien>
Component: TPTPAssignee: Kari Halsted <khalsted>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: camle, ccyang, ruthdaly, steven.wasleski, ycpeng
Version: unspecifiedKeywords: Documentation
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen capture
none
source code none

Description VinceChien CLA 2005-05-02 23:46:37 EDT
OS:	WINDOWS XP
Language:	Simplified Chinese
Build level: 	tptp.runtime-TPTP-4.0-200504271238
JDK version:  IBM JDK 1.4.2 SP1a
Test case #:  Profiling Views

Steps to recreate problem:
1.Decompile PerformanceExample.Class
2.Add some Simplified Chinese strings into it that will display in Memory   
  Statistics View, Object References View and Console View
3.Compile it
4.Create External Java Application using it
5.Run it and open Memory Statistics View, Object References View and Console   
  View
6.The Simplified Chinese strings display correctly in Memory Statistics View 
  and Object References View but in Console View


Error: Please refer to tptp_profiling-views.JPG

Expected Result: no errors
Comment 1 VinceChien CLA 2005-05-02 23:48:26 EDT
Created attachment 20618 [details]
screen capture
Comment 2 VinceChien CLA 2005-05-02 23:49:15 EDT
Created attachment 20619 [details]
source code
Comment 3 Dave Smith CLA 2005-05-03 01:06:35 EDT
Transferring this to the Platform compoment because it is not Monitoring.  Not 
sure if it is a problem in the Agent Controller or the UI.
Comment 4 Samson Wai CLA 2005-05-04 13:01:16 EDT
Can you add the "-Dconsole.encoding=nnn" when launching the java application? To
determine what "nnn" is, you can open the command window and type "chcp". You
may receive something like "936". So when you launch the java app, you have to
add "-Dconsole.encoding=MS936" in order to get the DBCS strings to appear properly.
Comment 5 VinceChien CLA 2005-05-04 23:08:12 EDT
The DBCS strings appear properly after I "-Dconsole.encoding=MS936" to VM 
arguments. Is there any document for user's reference to know that they have to 
add arguments before they launch the java applicaiton?
Comment 6 Samson Wai CLA 2005-05-05 11:13:24 EDT
Doc is needed.
Comment 7 Samson Wai CLA 2005-05-09 18:29:15 EDT
Target to 4.0i4 since doc is required.

Dan, Hyades 3.3 will also exhibit this behaviour. Please add doc to both
releases. Thanks.
Comment 9 VinceChien CLA 2005-05-23 22:48:57 EDT
Samson, Kari, thanks for your help.