commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Kumar S" <arunkum...@crimsonlogic.co.in>
Subject FileItem.getName() not giving arabic file name which is uploaded
Date Mon, 28 Dec 2009 13:19:15 GMT
Hi All,

 

I am using commons-cileUpload1.2.jar.

FileItem.getName() not giving arabic file name which is uploaded.

I am using the following code to get the file name.

 

Iterator iter = fileItems.iterator();

            while (iter.hasNext()) {

                FileItem item = (FileItem) iter.next();

if(!item.isFormField()){

String fieldName = item.getFieldName();

 String fileName = item.getName();

}

}

 

For English it is working fine. For arabic I am getting junk character like, E:\���.txt.

Is there any encoding support api which is give arabic file name?

 

Please help on the same.

 

Thanks & Regards.

ARUN KUMAR S

 

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message