diff --git a/admin/communication.php b/admin/communication.php index d729b1b..c6a3ddc 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -157,6 +157,11 @@ case 'email_save': /* Allow the fundraising campaigns id to be NULL, it'll never be 0 */ $fcstr = ($fcid == 0) ? 'NULL' : "'$fcid'"; + $bodyhtml=iconv("UTF-8","ISO-8859-1",$bodyhtml); + $name=iconv("UTF-8","ISO-8859-1",$name); + $description=iconv("UTF-8","ISO-8859-1",$description); + $from=iconv("UTF-8","ISO-8859-1",$from); + $subject=iconv("UTF-8","ISO-8859-1",$subject); $body=getTextFromHtml($bodyhtml); mysql_query("UPDATE emails SET @@ -735,12 +740,12 @@ case "email_get_list": echo ""; echo ""; echo "Date:".date("r").""; - echo "Subject:".htmlspecialchars(iconv("UTF-8","ISO-8859-1//TRANSLIT",$r->subject)).""; + echo "Subject:".htmlspecialchars($r->subject).""; if($r->bodyhtml) { - $body=iconv("UTF-8","ISO-8859-1//TRANSLIT",$r->bodyhtml); + $body=$r->bodyhtml; } else { - $body=nl2br(htmlspecialchars(iconv("UTF-8","ISO-8859-1//TRANSLIT",$r->body))); + $body=nl2br(htmlspecialchars($r->body)); } echo "".$body."";