Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem in downloading arabic text files

807580Aug 27 2010 — edited Aug 27 2010
Hi,
An overview of what am trying to do:
A user inputs certain form details and can attach a file..everything works fine with files in english..problem is with arabic files.
I upload the files using the javazoom upload bean..To save it with the same arabic name i use the foll code
String realName = new String(fileName.getBytes(),"Cp1256");All this works fine
database collation is Cp1256.Page encoding is in Cp1256

The problem is when am trying to retrieve this arabic text for downloading
I retrieve the attached file name from db and its the same file name..while trying to download this arabic file from the local folder it says the source doesnt exist
This is the code
downloadbean.getDownloadLink(java.net.URLEncoder.encode(rs.getString("filename"),"Cp1256"))
it shows this /download/%25D4%25D3%25ED%25C8%25D4%25DE.docx?id=uploadId

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2010
Added on Aug 27 2010
4 comments
598 views