This is work for me.
There are a lot of Chinese character in my MantisBT.
I have tested four cases.
case 1: return $mwParser->recursiveTagParse($output);
Chinese characters are displayed as ????
case 2: return $mwParser->recursiveTagParse(utf8_encode($output));
Chinese characters are displayed as ä»é¢æ§å¶
case 3: $db->set_charset("utf8"); and return $mwParser->recursiveTagParse(utf8_encode($output));
Chinese characters are displayed as ä»é¢æ§å¶
case 4: $db->set_charset("utf8"); and return $mwParser->recursiveTagParse($output);
Chinese characters are displayed as 介面控制
This is work for me. There are a lot of Chinese character in my MantisBT. I have tested four cases. case 1: return $mwParser->recursiveTagParse($output); Chinese characters are displayed as ????
case 2: return $mwParser->recursiveTagParse(utf8_encode($output)); Chinese characters are displayed as ä»é¢æ§å¶
case 3: $db->set_charset("utf8"); and return $mwParser->recursiveTagParse(utf8_encode($output)); Chinese characters are displayed as ä»é¢æ§å¶
case 4: $db->set_charset("utf8"); and return $mwParser->recursiveTagParse($output); Chinese characters are displayed as 介面控制
For your information