Can't make (UTF-8) traditional Chinese character to work in PHP gettext extension (.po and .mo files created in poEdit)

后端 未结 1 1249
礼貌的吻别
礼貌的吻别 2021-01-19 01:03

I checked MSDN and the locale string is zh_Hant, but I also tried with zh_TW (Chinese, Taiwan).

The traditional Chinese characters look OK in the poEditor, but when

相关标签:
1条回答
  • 2021-01-19 01:42

    I finally solved it. I had to have the following to file localization.php.

    bind_textdomain_codeset("messages", 'UTF-8');
    
    0 讨论(0)
提交回复
热议问题