Changes between Version 27 and Version 28 of ContentDispositionErrorHandling


Ignore:
Timestamp:
Dec 13, 2010, 2:46:12 AM (9 years ago)
Author:
ietf@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ContentDispositionErrorHandling

    v27 v28  
    5757To filename-decode an encoded-string, use the following algorithm:
    5858
    59  1. If the encoded-string contains non-ASCII characters, emit the encoded-string (decoded as ISO-8859-1) and abort these steps.
     59 1. If the encoded-string contains non-ASCII characters:
     60    i. If the encoded-string decodes as UTF-8, emit the encoded-string (decoded as UTF-8) and abort these steps.
     61    ii. Emit the encoded-string (decoded as ISO-8859-1) and abort these steps.
    6062 2. Let the url-unescaped-string be the encoded-string %-unescaped.
    61  3. Emit the url-unescaped-string (decoded as UTF-8).
     63 3. If the url-unescaped-string decodes as UTF-8, emit the url-unescaped-string (decoded as UTF-8) and abort these steps.
     64 4. Emit the url-unescaped-string (decoded as ISO-8859-1).
    6265
    6366Note that this algorithm starts with a sequence of octets obtained from the HTTP message, and results in a sequence of Unicode characters.