Hi! We are using Rackspace cdn and Jclouds to upload files into containers. While uploading we also set Content-Disposition header to indicate the filename. Sometimes names contain Finnish alphabets meaning å, ä or ö. The format we use for Content-Disposition is
attachment; filename="[name]"; filename*=utf-8''''[encoded name]; The first part should contain the raw name and while setting in Java code it goes ok but when object is uploaded the name is mangled e.g. "cöwböys änd åliens.png" becomes "cöwböys änd Ã¥liens.png" I tried encoding both parts and then it looks good but no longer works in some browser. Name is not decoded upon loading in browser. Rackspace supports Content-Disposition headers with Finnish alphabets as I have tried to manually set using Rackspace control panel. I then contacted their support and got instruction to do header setup after upload using their API but that requires extra steps I'd like to avoid. So my question is am I doing something wrong while setting the header? Should it be encoded? Can I even accomplish this with Jclouds? Hopefully this came in the right forum. Best Regards, Kalle Malin * Open in Google Docs Viewer * Open link in new tab * Open link in new window * Open link in new incognito window * * Download file * Copy link address * Edit PDF File on PDFescape.com
