DownloadLink fix that encodes non-ASCII file names properly
-----------------------------------------------------------
Key: WICKET-1115
URL: https://issues.apache.org/jira/browse/WICKET-1115
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.2.6
Environment: Internet Explorer 6, Firefox 2.0.0.8
Reporter: Volodymyr Sobotovich
When users tries to download file with name consisting of non-ASCII characters
browsers don't display its name correctly in download dialog box. To fix the
problem the proper encoding must be applied to file name. IE expects
URL-encoding to be used and Firefox Q- or Base4. That's why it's necessary to
detect user's browser type and use the appropriate codec. Codecs were borrowed
from commons-codec library.
This fix works IE6 and FF2. When I tested it in IE7 a discovered that few
starting characters are displayed incorrectly. I mean that IE7 must use some
variation of URL encoding and that's why this patch must be patched more:)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.