View Single Post
  #13 (permalink)  
Old 09-01-2008, 02:19 AM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Looks like char vs byte problem.
Is the ? character a binary 0?
Use String.charAt() to get some and display with Integer.toHexString() to see what it is.
Look at what output.writeChars does. It writes 2 bytes to the output stream.

Has the code worked before? T thought your posts showed it worked?
Reply With Quote