Quoted-printable


Quoted-printable

Quoted-printable, or QP encoding, is an encoding using printable characters (i.e. alphanumeric and the equals sign "=") to transmit 8-bit data over a 7-bit data path. It is defined as a MIME content transfer encoding for use in Internet e-mail.

Introduction

The basic Internet e-mail transmission protocol, SMTP, supports only ASCII characters (see also 8BITMIME). MIME defines mechanisms for sending other kinds of information in e-mail, including text in languages other than English, using character encodings other than ASCII. However these encodings often use byte values outside the ASCII range so they need to be encoded further before they are suitable for use in e-mail. Quoted-printable encoding is one method used for mapping arbitrary bytes into sequences of ASCII characters. This encoding is reversible, meaning the original bytes and hence the non-ASCII characters they represent can be recovered.

Quoted-printable and Base64 are the two basic MIME content transfer encodings. If the input text is mostly ASCII, quoted-printable results in a fairly readable and compact encoded result. On the other hand if the input is not mostly ASCII then quoted-printable becomes both unreadable and extremely inefficient. Base64 is not readable but has a predictable overhead for all data and is the more sensible choice for binary formats or text in non-Latin based languages.

Quoted-printable encoding

Any 8-bit byte value may be encoded with 3 characters, an "=" followed by two hexadecimal digits (0–9 or A–F) representing the byte's numeric value. For example, a US-ASCII form feed character (decimal value 12) can be represented by "=0C", and a US-ASCII equal sign (decimal value 61) is represented by "=3D". All characters except printable ASCII characters or end of line characters must be encoded in this fashion.

All printable ASCII characters (decimal values between 33 and 126) may be represented by themselves, except "=" (decimal 61).

ASCII tab and space characters, decimal values 9 and 32, may be represented by themselves, except if these characters appear at the end of a line. If one of these characters appears at the end of a line it must be encoded as "=09" (tab) or "=20" (space).

If the data being encoded contains meaningful line breaks, they must be encoded as an ASCII CR LF sequence, not as their original byte values. Conversely if byte values 10 and 13 have meanings other than end of line then they must be encoded as =0A and =0D.

Lines of quoted-printable encoded data must not be longer than 76 characters. To satisfy this requirement without altering the encoded text, "soft line breaks" may be added as desired. A soft line break consists of an "=" at the end of an encoded line, and does not cause a line break in the decoded text.

External links

* [http://www.nowan.hu/quotedprintableencoder.aspx Quoted printable encoder and decoder]

References

*RFC 1521 (obsolete)
*RFC 2045 (MIME)


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Quoted printable — Saltar a navegación, búsqueda Quoted printable, o codificación QP, es una codificación que usa caracteres imprimibles (por ejemplo alfanuméricos y el signo de igualdad = ) para transmitir datos de 8 bit sobre un protocolo que solamente soporta 7… …   Wikipedia Español

  • Quoted-printable — Pour les articles homonymes, voir QP. Quoted Printable (QP) est un format d encodage de données codées sur 8 bits, qui utilise exclusivement les caractères alphanumériques imprimables du code ASCII (7 bits). En effet, les différents codages… …   Wikipédia en Français

  • Quoted Printable — Pour les articles homonymes, voir QP. Quoted Printable (QP) est un format d encodage de données codées sur 8 bits, qui utilise exclusivement les caractères alphanumériques imprimables du code ASCII (7 bits). En effet, les différents codages… …   Wikipédia en Français

  • Quoted printable — Pour les articles homonymes, voir QP. Quoted Printable (QP) est un format d encodage de données codées sur 8 bits, qui utilise exclusivement les caractères alphanumériques imprimables du code ASCII (7 bits). En effet, les différents codages… …   Wikipédia en Français

  • Quoted-Printable — Die Quoted Printable Kodierung ist ein Verfahren, bei dem Bytes außerhalb des ASCII Zeichensatzes speziell kodiert werden. Es wird vor allem als zusätzliche Kodierung bei E Mails verwendet, da bis heute nicht sichergestellt ist, dass alle… …   Deutsch Wikipedia

  • Quoted printable — Die Quoted Printable Kodierung ist ein Verfahren, bei dem Bytes außerhalb des ASCII Zeichensatzes speziell kodiert werden. Es wird vor allem als zusätzliche Kodierung bei E Mails verwendet, da bis heute nicht sichergestellt ist, dass alle… …   Deutsch Wikipedia

  • Quoted-Printable — Pour les articles homonymes, voir QP. Quoted Printable (QP) est un format d encodage de données codées sur 8 bits, qui utilise exclusivement les caractères alphanumériques imprimables du code ASCII (7 bits). En effet, les différents codages… …   Wikipédia en Français

  • Quoted-printable — Die Quoted Printable Kodierung ist ein Verfahren, bei dem Bytes außerhalb des ASCII Zeichensatzes speziell kodiert werden. Sie ist ein Proposed Standard und im RFC 2045 definiert. Sie wird vor allem als zusätzliche Kodierung bei E Mails verwendet …   Deutsch Wikipedia

  • quoted printable — ● ►en loc. m. ►MAIL►USENET Technique de codage des caractères 8 bits en ASCII 7 bits, consistant à remplacer le caractère par son indice dans la table ASCII. é est par exemple remplacé par =E9 . Cela permet par exemple de faire passer les accents …   Dictionnaire d'informatique francophone

  • Printable — may refer to:* Printable character * Printable version * Quoted printable …   Wikipedia


Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.