tessus / mwExtensionMantis

MediaWiki Extension:Mantis
https://www.mediawiki.org/wiki/Extension:Mantis
GNU General Public License v2.0
2 stars 6 forks source link

changes to show chinese in summary field #19

Closed HSINWEI closed 7 years ago

HSINWEI commented 7 years ago

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

tessus commented 7 years ago

Thank you very much for your PR.