Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

CP500 Encoding.,

843810Mar 7 2002 — edited Mar 12 2002
Hi ,
I have use CP 500, for encoding.. but I am getting excption on this.. Pl advice me..how to use this cp500 encoding.

I have attached my sample code.

public class Test {
public static int DEBUG = 0 ;
public static void main(String args[])
{
try {

/* For EBCDIC conversion */
String encoding= "cp500" ;

String formattedMsg= "test" ;
String tempString = new String( formattedMsg.toString() ) ;

// return( tempString.getBytes(encoding) ) ;
System.out.println("formattedMsg is " + formattedMsg ) ;
System.out.println("tempString is " +
tempString.getBytes(encoding)
) ;
}
catch (Throwable e) {
System.err.println(e);
}
}
}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2002
Added on Mar 7 2002
1 comment
731 views