I\'m kind of a new programmer, and I\'m having a couple of problems with the code I\'m handling.
Basically what the code does is receive a form from another JSP, rea
The problem is not in the inputstreams since they doesn't handle characters, but only bytes. Your problem is at the point you convert those bytes to characters. In this particular case, you need to specify the proper encoding in the String constructor.
String notes = new String(dataBytes, "UTF-8");
By the way, the DataInputStream
has no additional value in the particular code snippet. You can just keep it InputStream
.