In my web application, people can upload any file and view it later (or download, if it can't be displayed). Therefore, they are embedded in an HTML "object" tag. From the Java code (I use JSF 1.2) I get the necessary info (file path, mime type) and from them I construct the object via jQuery. This works fine ... except when there is a special symbol like ä, ö, ü etc. in the file name.
I need to use jQuery instead of directly getting the bean values because JSF always seems to return me numeric entities instead of ä, ö, ü etc. and I replace them. However, it still doesn't work. The browser URI encodes the file path and tries looking that up. URI encoding the value myself also changed nothing. (My encoding is ISO-8859-1).
So, to put it short: What must I do to be able to include a file that has a symbol like ä, ö ü in its filename in an HTML object tag? (As well as in an alternative download link, if the file can't be displayed)?