• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

byte to US ASCII

 
Sac Patel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
After i read the byte value from the db.db how do i comvert that value to a ASCII value. is there a conversion facility, thro' which i can easily convert from 65 -> 'A'. thanks for the help
 
Sac Patel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for the dumb question. it just came to me that i can cast it to (char) and it gets converted
 
james render
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Sac,
take a look at the java.nio.Charset, specifically the encode and decode methods. Might make your life a bit easier (it did mine!)
james
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic