I tried this just now on Sun JDK 1.3.3 on Sun Solaris. No problem, junk is written out.
So I think you're having perhaps some kind of an encoding issue? Maybe the display (Std out) is unable to show these chars you're printing?
Greg
-----Original Message-----
From: Bhuvan K Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 4:18 AM
To: JDJList
Subject: [jdjlist] RE: Problem on HP-UX
Please find the sample attached .
Thanks
Bhu1
-----Original Message-----
From: Bhuvan K Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 8:16 PM
To: JDJList
Subject: [jdjlist] Problem on HP-UX
Hi All,
Please see the attached program which simply creates a String from a
byte[] and prints it.
NOTE :: this byte[] is the byte representation of a EBCDIC String.
When I run this sample on Windows and Solaris. This works properly and
prints a String of junk chars as expected.
But when I run the same sample on HP-UX 11.11
It creates an EMPTY String object on new String(byte[]) and length is
also printed = 0
I have tried the following versions of both JDK and JRE on HP-UX
1.
java version "1.2.2.11"
HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build
1.2.2.11-01/10/31-PA_RISC2.0)
2.
java version "1.3.1.02"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1.02-011206-02:17)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.02-JPSE_1.3.1.02_20011206
PA2.0, mixed mode)
Any Clues !!!!
Thanks
Bhuvan
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
http://www.sys-con.com/java/list.cfm
