Special characters in Amazon S3 keys?

Is it possible to have special characters like åäö in the key? If I urlencode the key before storing it it works, but I can't find a way to access the object. If I write åäö in the url, I get denied access (for example, I get if the object is not found). If I urlencode the url and paste it into the browser, I get "InvalidURIC do not parse the specified URI".

Is there a way to do this?

+2


source to share


1 answer


Amazon supports key names with Unicode characters. You do not need to provide the key name URL when uploading the file to Amazon. You need to url encode the key name when generating the download url.

If you upload a file named åäö.txt to a bucket named mybucket, the download url will be http://mybucket.s3.amazonaws.com/%C3%A5%C3%A4%C3%B6.txt



If you are using .NET, the SprightlySoft S3 Component for .NET has a feature that makes it easy to create a download URL and fully supports special characters in key names. Try it at sprightlysoft.com

+3


source







All Articles