We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,485 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

1
Contributor
0
Replies
4
Views
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0507 seconds using 2.68MB