Le 26/03/2013 14:58, Olivier Miakinen a ᅵcrit :
>>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>> Content-Transfer-Encoding: 7bit
>
> Il faudrait vᅵrifier (ce que je vais m'empresser de faire dᅵs que
> j'ai 5 minutes) mais ᅵa ne me choque pas : l'article ne contenant
> que de l'US-ASCII qui est un sous-ensemble de ISO-8859-1, aucun
> des caractᅵres rᅵellement utilisᅵs ne nᅵcessitait 8 bits. Du coup,
> j'aurais tendance ᅵ penser que c'est correct.
J'ai vᅵrifiᅵ, non seulement c'est correct, mais c'est mᅵme un
comportement dᅵsirable.
Je cite des extraits de <
http://www.ietf.org/rfc/rfc2045.txt>ᅵ :
------------------------------------------------------------------------
2.7. 7bit Data
"7bit data" refers to data that is all represented as relatively
short lines with 998 octets or less between CRLF line separation
sequences [RFC-821]. No octets with decimal values greater than 127
are allowed and neither are NULs (octets with decimal value 0). CR
(decimal value 13) and LF (decimal value 10) octets only occur as
part of CRLF line separation sequences.
------------------------------------------------------------------------
6.1. Content-Transfer-Encoding Syntax
The Content-Transfer-Encoding field's value is a single token
specifying the type of encoding, as enumerated below. Formally:
encoding := "Content-Transfer-Encoding" ":" mechanism
mechanism := "7bit" / "8bit" / "binary" /
"quoted-printable" / "base64" /
ietf-token / x-token
These values are not case sensitive -- Base64 and BASE64 and bAsE64
are all equivalent. An encoding type of 7BIT requires that the body
is already in a 7bit mail-ready representation. This is the default
value -- that is, "Content-Transfer-Encoding: 7BIT" is assumed if the
Content-Transfer-Encoding header field is not present.
------------------------------------------------------------------------
6.4. Interpretation and Use
[...]
It should also be noted that, by definition, if a composite entity
has a transfer-encoding value such as "7bit", but one of the enclosed
entities has a less restrictive value such as "8bit", then either the
outer "7bit" labelling is in error, because 8bit data are included,
or the inner "8bit" labelling placed an unnecessarily high demand on
the transport system because the actual included data were actually
7bit-safe.
------------------------------------------------------------------------
ᅵ Version franᅵaise : <
http://jlr31130.free.fr/rfc2045.html>.
En particulier, l'extrait de la section 6.4 confirme qu'annoncer 8bit
quand 7bit suffirait ᅵ formule une demande vraiment pas nᅵcessaire sur
le systᅵme de transport ᅵ (traduction de
jlr31130.free.fr).
Cordialement,
--
Olivier Miakinen