The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

ASCII characters

Posted by stimpy on October 26, 2000 at 4:32 AM

I need to parse an incoming string using :
low order control characters as the delimiters

i.e. low order control characters are
hex & decimal 001,002,003.. 007 etc.

char mychar = (char)0x04;
System.out.println ("the char :" mychar); outputs the following
the char :  (I expected a diamond not )

I think that I'm missing the point, should I use Unicode ?

Every low order control char is a  , can I display a low order control character ?;

Can I use the StringTokeniser class to parse an incoming byte array containing low order control chars ?

Thanks in anticipation
stimpy



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us