I believe that the streaming resolution adheres to rfc-2183 which
limits the content-distribution header to 7-bit us ascii values.

Larry


On Thu, Apr 3, 2014 at 10:15 AM, Ignasi Sola (JIRA)
<[email protected]> wrote:
> StreamingResolution filename don't permit non Ascii characters.
> ---------------------------------------------------------------
>
>                  Key: STS-917
>                  URL: http://www.stripesframework.org/jira/browse/STS-917
>              Project: Stripes
>           Issue Type: Bug
>           Components: ActionBean Dispatching
>     Affects Versions: Release 1.5.7
>          Environment: windows 7
>             Reporter: Ignasi Sola
>
>
> Hi,
> as other people I have problems with the filename treatment when opening a 
> file with StreamingResolution. My filename problem is not with spaces I see 
> this bug is solved, my problem is with international characters like 
> cyrillic, which dissappear from the filename in any of the browsers:
> The file "0000033876Лист в MDM - Запрос SAP-номеров 1.xlsx"  when opened is 
> converted to "0000033876 MDM - SAP- 1.xlsx"
>
> My code:
>
>         StreamingResolution streamingResolution = new 
> StreamingResolution(getMimeType(filename),
>                 FileUtils.openInputStream(handler.getFile(filename)));
>
>         HttpServletResponse response = getContext().getResponse();
>         response.setHeader("Expires", "0");
>         response.setHeader("Cache-Control", "must-revalidate");
>         response.setHeader("Content-Disposition", "attachment; filename=\"" + 
> escaped + "\"");
>         return streamingResolution;
>
> Anyone know is there's a solution for this?
> Thank you!
>
> --
> This message is automatically generated by JIRA.
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Stripes-development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-development

------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to