Index: branches/5.2.x/core/kernel/utility/email_send.php =================================================================== diff -u -N -r15445 -r15461 --- branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 15445) +++ branches/5.2.x/core/kernel/utility/email_send.php (.../email_send.php) (revision 15461) @@ -1,6 +1,6 @@ ", " ", - chr(161), - chr(162), - chr(163), - chr(169), - "chr(\\1)" + $this->_safeCharEncode(161), + $this->_safeCharEncode(162), + $this->_safeCharEncode(163), + $this->_safeCharEncode(169), + "\$this->_safeCharEncode(\\1)" ); return strip_tags( preg_replace ($search, $replace, $html) ); } /** + * Returns symbols, that corresponds given ASCII code and also encodes it into proper charset + * + * @param int $ascii + * @return string + * @access protected + */ + protected function _safeCharEncode($ascii) + { + return mb_convert_encoding(chr($ascii), $this->charset, 'ISO-8859-1'); + } + + /** * Add text OR html part to message (optionally encoded) * * @param string $text part's text