/** * Quote the given text if it contains any "illegal" characters */ function quoteIfNecessary($text, $charset = AK_ACTION_MAILER_DEFAULT_CHARSET) { return preg_match(AK_ACTION_MAILER_CHARS_NEEDING_QUOTING_REGEX,$text) ? AkActionMailerQuoting::quotedPrintable($text,$charset) : $text; }
function encode($text, $charset = 'utf-8') { return AkActionMailerQuoting::quotedPrintable($text, $charset); }