#31 Right file-name encoding in attachment header

open-works-for-me
nobody
None
5
2009-12-11
2009-05-13
No

If file-name consists of UTF-8 characters browser try to save an attachment file with non readable name. To prevent such a behavior we must rightly encode file name in header. But the problem is - Microsoft.
We need first to check that browser is not IE and than encode file name according to http://tools.ietf.org/html/rfc2231 (see also http://greenbytes.de/tech/webdav/draft-reschke-rfc2231-in-http-latest.html#RFC2231\)
If client use IE we must simply encode file name in "percent" format (but space we must replace as %20 not + sign)

The second file in patch is a BasePage.html - simply set up UTF-8 encoding in meta tag on the top of all pages - this remove most of the encoding problems.

Discussion

  • Manfred Wolff
    Manfred Wolff
    2009-12-11

    Hi. Unfortunately I cannot reproduce the problem For me its fine. My test was the filename "Neu Textdatei mit ümlaßen.txt" an there was no problem to save it in Firefox 3.5 and also in IE 7.

     
  • Manfred Wolff
    Manfred Wolff
    2009-12-11

    • status: open --> open-works-for-me