|
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?
|