|
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]
|