handle Euro Symbol when switching addresses

This commit is contained in:
Klaus Leithoff 2013-01-24 16:44:31 +00:00
parent 4db64d1bc3
commit 69a6d18a4c

View File

@ -1494,7 +1494,7 @@ class ajaxfelamimail
$_content = str_replace("\n",'\n',$_content); // dont know why, but \n screws up preg_replace
$_content = preg_replace($reg='|'.preg_quote('<!-- HTMLSIGBEGIN -->','|').'.*'.preg_quote('<!-- HTMLSIGEND -->','|').'|u',
$rep='<!-- HTMLSIGBEGIN -->'.$sigText.'<!-- HTMLSIGEND -->', $in=$_content, -1, $replaced);
$_content = str_replace(array('\n',"\xe2\x80\x93","\xe2\x80\x94"),array("\n",'&ndash;','&mdash;'),$_content);
$_content = str_replace(array('\n',"\xe2\x80\x93","\xe2\x80\x94","\xe2\x82\xac"),array("\n",'&ndash;','&mdash;','&euro;'),$_content);
//error_log(__METHOD__."() preg_replace('$reg', '$rep', '$in', -1)='$_content', replaced=$replaced");
if ($replaced)
{