Re: [PHP] About the mail().

2005-04-30 Thread BAO RuiXian
Hello,
Penghui Wang wrote:
Hi lists:
I am new here. And i know little about php. Sorry ask so stupid
question.
 

snipped ...
 $headers .= "Content-Transfer-Encoding: UTF-8\n";
 $headers .= "Content-Type: text/plain; charset=utf-8\n";
 

snipped ...

åçæé

 

snipped ...
But all the chinese words could change to "". The charset of this
file is UTF-8.
I wonder know how to deal with it. And i am blind with it now. Because
the lack of experience with php.
 

Maybe UTF-8 is not supported by your system. You may try GB2312 to see 
what happends.

Good luck.
Ruixian
Best regards
Wang Penghui

 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] About the mail().

2005-04-29 Thread Penghui Wang
Hi lists:

I am new here. And i know little about php. Sorry ask so stupid
question.
I want to use my local /usr/sbin/sendmail to send mail to a certain
address. I have checked the function_list in http://www,php.net.
And i found the mail(). It enough to my requirement.

And i have written a php file like below:

http://www.example.com)\n";

  mail('[EMAIL PROTECTED]', 'æéèåå! ', $body, $headers);
  header("Location: http://www.example.com";);
}

if($_POST['cancel']) {
  header("Location: http://www.example.com";);
}
?>
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="zh" >

åçæé



åçåå

èéæåçååæåïåæææääééæçéïæåäåäéïèææäååäåçäæéååæçééïååçæäåå.


æçèçäæ
æçååï
éäååï
åååçï
çèåçï


ææéçéé
äéï
ååï










But all the chinese words could change to "". The charset of this
file is UTF-8.
I wonder know how to deal with it. And i am blind with it now. Because
the lack of experience with php.


Best regards

Wang Penghui