How to json_encode array with french accents?

后端 未结 7 2302
离开以前
离开以前 2020-12-05 13:58

I have an array item with a French accent ([WIPDescription] => Recette Soupe à lOignon Sans Boeuf US). The data is being properly pulled from the database (mysql).

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 14:18

    Per the PHP docs

    This function only works with UTF-8 encoded data.

提交回复
热议问题