28-07-2007, 15:31
|
|
|
חבר מתאריך: 27.07.07
הודעות: 10
|
|
את הכותרת ואת המאת צריך לקודד ב קידוד MIME
את הכותרת ואת המאת צריך לקודד ב קידוד MIME
למה שלא תשתמש ב http://phpmailer.sourceforge.net/
http://en.wikipedia.org/wiki/MIME
MIME Encoded-Word
Since RFC 2822, message header names and values are always ASCII characters; values that contain non-ASCII data must use the MIME encoded-word syntax ( RFC 2047) instead of a literal string. This syntax uses a string of ASCII characters indicating both the original character encoding (the " charset") and the content-transfer-encoding used to map the bytes of the charset into ASCII characters.
The form is: "=? charset? encoding? encoded text?=".
Difference between Q-encoding and quoted-printable
The ASCII codes for the question mark (?) and equals sign may not be represented directly as they are used to delimit the encoded-word. The ASCII code for space may not be represented directly because it could cause older parsers to split up the encoded word undesirably. To make the encoding smaller and easier to read the underscore is used to represent the ASCII code for space creating the side effect that underscore cannot be represented directly. Use of encoded words in certain parts of headers imposes further restrictions on which characters may be represented directly.
For example,
Subject: =?utf-8?Q?=C2=A1Hola,_se=C3=B1or!?=
is interpreted as "Subject: ¡Hola, señor!".
The encoded-word format is not used for the names of the headers (for example Subject). These header names are always in English in the raw message. When viewing a message with a non-English e-mail client, the header names are usually translated by the client.
|