• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange question about character encoding

 
Min Huang
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My assignments wants me to use ASCII encoding, and I thought it would be as simple as calling the String constructor and String.getBytes with the appropriate CharSet object, but...
Upon rereading my assignment, I noticed it says I'm not allowed to use any of the nio facilities, and CharSet is in the nio package. Does anybody know how to get around this?
 
Don Wood
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what I'm doing. I think it's ok.
 
Min Huang
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic