
28-05-2007, 22:07
|
 |
|
|
חבר מתאריך: 17.09.05
הודעות: 6,023
|
|
מצאתי תפונקצייה של האימייל , נראה לי ...
קוד PHP:
function FormatHTMLEmail($str) { $messageEmailTop = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1255\"><title></title></head><bodydir=\"rtl\"><p align=\"right\">"; // $messageEmailTop = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1255\"><title></title></head><body dir=\"rtl\">"; // $messageEmailTop = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1255\" ><title></title></head><body><p align=\"right\" dir=\"rtl\">"; $messageEmailBottom = "<br></p></body></html>"; return($messageEmailTop.nl2br($str).$messageEmailB ottom); }
אני אמור להחליף את ה windows-1255 ?
לפי מה שאני יודע זה הקידוד המתאים לעברית .. זה הקידוד שנמצא באתר שלי ..
אם \ה לא הכותר יש מצב לקבל "הסברון" מה אני אמור לעשות בדיוק ?
בנוסף יש במערכת קובץ גדול עם כמה עשרות פונקציות שמטפלות במייל .. יש שם פונקצייה שקוראים לה קידוד ובה כנראה נמצאת הבעייה
קוד PHP:
// Encodes the given string for proper display for this encoding ... nabbed // from php.net and modified. There is an alternative encoding method which // may produce lesd output but it's questionable as to its worth in this // scenario IMO function encode($str) { if ($this->encoding == '') { return $str; }
// define start delimimter, end delimiter and spacer $end = "?="; $start = "=?$this->encoding?B?"; $spacer = "$end\r\n $start";
// determine length of encoded text within chunks and ensure length is even $length = 75 - strlen($start) - strlen($end); $length = floor($length / 2) * 2;
// encode the string and split it into chunks with spacers after each chunk $str = chunk_split(base64_encode($str), $length, $spacer);
// remove trailing spacer and add start and end delimiters $str = preg_replace('#' . phpbb_preg_quote($spacer, '#') . '$#', '', $str);
return $start . $str . $end; }
אם זאת לא הבעייה מה אני אמור לחפש ?
_____________________________________

נערך לאחרונה ע"י fcf בתאריך 28-05-2007 בשעה 22:24.
|