You are here: [Mail]mb_encode_mimeheader « PHP « IT news, forums, messages
[Mail]mb_encode_mimeheader

Posted by Sylvain Gourvil on 09/07/05 10:41

Hi !

I need some help for mail's encoding structure.
I use this code for encoding french character like 'é' or 'è':

mb_language('uni');
mb_internal_encoding(mb_detect_encoding($this->subject));
$res = mail('yyy@xxx.net',
mb_encode_mimeheader($this->subject), $this->msgTxt.$this->msgHTML,
$this->entete, '-fpostmaster@xxx.net');

It is working fine unless if my first word is not containing one of
those multi-bites characters!

For example :
Subject : êtes vous francais ou étranger ? => It is well encode and all
is fine on differents mail software and webmail
Subject : Bonjour, êtes vous francais ? => It is encode at the
beginnning of the second word. So it is not well written on some softwre
like Incredimail for example.

Does someone know where i am wrong ?
Thanks a lot for your help

Sylvain Gourvil






___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация