DataInputStream and UTF-8
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, read the bytes, parse the data, and submit the results to SalesForce, using DataInputStream. //Getting the parameters from request String contentType = request.getContentType(); DataInputStream in = new DataInputStream(request.getInputStream()); int formDataLength = request.getContentLength(); //System.out.println(formDataLength); byte dataBytes[] = new byte[formDataLength]; int byteRead = 0; int totalBytesRead = 0; while (totalBytesRead