鍍金池/ 問(wèn)答/PHP/ Api接口數(shù)據(jù)包含emoji字符導(dǎo)致無(wú)法json_encode,有哪些好的解決方

Api接口數(shù)據(jù)包含emoji字符導(dǎo)致無(wú)法json_encode,有哪些好的解決方案?

如題所述。如題所述。如題所述。如題所述。如題所述。

回答
編輯回答
毀與悔

json_encode的時(shí)候加上這個(gè)參數(shù)JSON_UNESCAPED_UNICODE試試

2017年10月18日 00:34