multipart/form-data server don't read right single quote
Hi, I'm submitting a html file in a form enctype=multipart/form-data file item to the server:
at the server:
<%@ page language="java" contentType="text/html; charset=utf-8"%><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
DiskFileUpload fu = new DiskFileUpload();
fu.setSizeMax(5000000);
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
while(itr.hasNext()) {
FileItem fi = (FileItem)itr.next();
if(!fi.isFormField()) {
text=fi.getString();
}
the problem is it can't read some characters like right single quotes.
Wouldn't and hadn't turn Wouldnt and hadnt.
Regards
Related Article: form and servlet
is a solved JSP discussion thread by james chaco that has 2 replies, was last updated 1 year ago and has been tagged with the keywords: form, java, multipart/form, servlet, standalone.
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0