Jul 23, 2001 #1 Zappa IS-IT--Management Joined Oct 17, 2001 Messages 1 Location US Anyone know of a function in java that will convert a hexString to some ASCII representation?
Jul 27, 2001 #2 WildWill IS-IT--Management Joined Jul 25, 2001 Messages 95 Location US Have a look at this it should do what you want. 4D is converted to its ASCII M it is padded out with \00 as it uses Unicode. Code: void jButton1_actionPerformed( ActionEvent e ) { String myString = "\004D"; char myChar = myString.charAt( 0 ); JOptionPane.showMessageDialog( null,"Conv "+myChar ); } Hope this was of help Billy H bhogar@acxiom.co.uk Upvote 0 Downvote
Have a look at this it should do what you want. 4D is converted to its ASCII M it is padded out with \00 as it uses Unicode. Code: void jButton1_actionPerformed( ActionEvent e ) { String myString = "\004D"; char myChar = myString.charAt( 0 ); JOptionPane.showMessageDialog( null,"Conv "+myChar ); } Hope this was of help Billy H bhogar@acxiom.co.uk