A friend help me to slove the problem
We added the following to "class.bocompose.inc.php":
<?php
function html_entity_decode_utf8($string)
{
static $trans_tbl;
// replace numeric entities
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'code2utf(hexdec("\\1"))', $string);
$string = preg_replace('~&#([0-9]+);~e', 'code2utf(\\1)', $string);
// replace literal entities
if (!isset($trans_tbl))
{
$trans_tbl = array();
foreach (get_html_translation_table(HTML_ENTITIES) as $val=>$key)
$trans_tbl[$key] = utf8_encode($val);
}
return strtr($string, $trans_tbl);
}
// Returns the utf string corresponding to the unicode value (from php.net, courtesy -
romans@void.lv)
function code2utf($num)
{
if ($num < 128) return chr($num);
if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
return '';
}
?>
from
http://us2.php.net/html_entity_decode and then change html_entity_decode(a,b,c) to $this->html_entity_decode_utf8(a)
It works!

However, now...I encounter another problem.....

I can't seem to send the mail out due to problem with SMTP....

I have setup the SMTP to "mydomain.com" and used my default (
username@domain.com + password) in the setup, it didn't work.
I guess my question is....for authorization on SMTP, do we have to use the different set of username and password for corresponding e-mail?