標題: [PHP] DISCUZ 4 UTF8 SENDMAIL 止咳方法 [打印本頁]
作者: 康康 時間: 9-2-2006 01:41 標題: [PHP] DISCUZ 4 UTF8 SENDMAIL 止咳方法
現在我們的海外論壇 SE 是一個全新的 UTF8 論壇, 及加入一個 iconv() HACK UTF8-BIG5 to BIG5-BIG5 就暫時解決電郵驗證的問題.複製內容到剪貼板
代碼:
if($mailsend == 1 && function_exists('mail')) {
$email_message = str_replace("\r", '', $email_message);
strpos($email_to, ',') ? @mail('Discuz! User <me@localhost>', $email_subject, $email_message, "From: $emai$
// convert to BIG5 START
$email_message = iconv("UTF-8","BIG5",$email_message);
// convert to BIG5 END
iconv() 是不能 Convert UTF8 繁體 + 一些簡体 LOGIN NAME 轉去 BIG5.
解決方法就係修改 emails.lang.php 的 Template. 刪除所有的 $member[username]
歡迎光臨 SE 論壇 (http://se.os.st/bbs/) |
Powered by Discuz! 6.1.0F |