java - File Not Found for File with Turkish Characters -
i have problem using file , fileinputstream. have web application allows users attach files (that store on server filesystem) , stream them when want download them.
a file has been attached has turkish characters , spaces in name. error has same name file on linux file system a: java.io.filenotfoundexception, no such file or directory. file upload correctly , renamed current name part of attaching process. files without turkish character work fine.
i know sounds turkish character why able renamed turkish name in first place.
this customer (in turkey) have screen shots showing error message , directory of file system , names seem match.
does know problem be.
thanks paul
edit:
the copy process involves creating new file object (attachment object has details of filename used)
new file(attachmentdir + separator + attachment.getid()+(stringutils.isblank(attachment.getissuekey())?"":"_"+attachment.getfilename()));
and moving temporary directory
file.renameto(attachmentfile);
couldn't find answer fell filtering directory listing unique number appended front of each file name. not ideal work around @ least.
Comments
Post a Comment