LoginSignup
2
1

More than 5 years have passed since last update.

json_encodeしたら{"name":"\u29AF\u19A4...}みたいになってしまった

Posted at

原因

どうやら日本語が文字コードで表示されてしまうことが原因らしい。
json_encode() の第二引数に JSON_UNESCAPED_UNICODE を割り当てると漢字のまま入るようになる。

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1