[php] - Mail sending UNICODE

laki

Может кто-нибудь сталкивался с проблемой посылки в UNICODE, когда Content-Type: text/plain;charset="utf-8". посылать надо именно text/plain. Когда отсылается вот такая штука
$msg = "Au d" . iconv("ISO-8859-1", "UTF-8", chr(233 . "m" . iconv("ISO-8859-1", "UTF-8", chr(233 . "nageant : " .
"Veuillez imprimer ce document, \n" .
"v" . iconv("ISO-8859-1", "UTF-8", chr(233 . "rifier si l'information pr" . iconv("ISO-8859-1", "UTF-8", chr(233 . " remplie est conforme,\n" .
"ajouter toutes autres informations si n" . iconv("ISO-8859-1", "UTF-8", chr(233 . "cessaire, " .
"signer\n" . "et finalement poster " . iconv("ISO-8859-1", "UTF-8", chr(224 . " l'adresse indiqu" . iconv("ISO-8859-1", "UTF-8", chr(233 . "e.";
в оригинале вот такой текст:
Au déménageant : Veuillez imprimer ce document, vérifier si l'information pré remplie est conforme, ajouter toutes autres informations si nécessaire, signer et finalement poster à l'adresse indiquée.
приходит
Au demenageant : Veuillez imprimer ce document,
verifier si l'information pre remplie est conforme,
ajouter toutes autres informations si necessaire, signer
et finalement poster a l'adresse indiquee.

laki

[offtopic]
я что с девушкой общаюсь? если да, то все ясно!
[/offtopic]

laki


X-FAXSENDER: xxx.com
X-STAMP: xxx123
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0022_01C1BD6C.D0C0F9F0"
This is a MIME encoded message.
------=_NextPart_000_0022_01C1BD6C.D0C0F9F0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Au dГ©mГ©nageant : Veuillez imprimer ce document,
vГ©rifier si l'information prГ© remplie est conforme,
ajouter toutes autres informations si nГ©cessaire, signer
et finalement poster Г  l'adresse indiquГ©e.
------=_NextPart_000_0022_01C1BD6C.D0C0F9F0--
вот хедеры письма

boris1963-11

А у тебя глюк с тем, что буквы становятся обычными, где наблюдается, в какой программе? Попробуй это письмо чем-нибудь другим посмотреть, например через веб-инерфейс может выглядеть плохо, если веб-интерфейс конвертирует все "плохие" символы в обычные. То есть, тут похоже дело не в глюке ПХП, а в глюке того, как НОРМАЛЬНОЕ письмо отображается.
Оставить комментарий
Имя или ник:
Комментарий: