Hi, Bhuvan,

I run your program on HP-UX 11.11 and works fine. The
following are the results:

bvappd1:/home/bo001ya/java/test> java -version
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)

bvappd1:/home/bo001ya/java/test> java Test
 STr ::
�����@@@@@��@�������@@@@@@�����@@@@@@@@@@@@�������������������������������������������


By the way, can you provide some info on EBCDIC. I am
working on a project which will use EBCDIC but I have
no idea on that. Could you explain how to convert a
string or ASCII to EBCDIC?

Thank you.

Bo


--- Bhuvan K Gupta <[EMAIL PROTECTED]> wrote:
> 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


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to