回答編集履歴
1
追記
answer
CHANGED
|
@@ -6,4 +6,10 @@
|
|
|
6
6
|
$enc = mb_detect_encoding($json, 'ASCII,JIS,UTF-8,EUC-JP,SJIS-WIN');
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
で、結果がUTF-8だったらmb_convert_encoding()しないでjson_decode()かける、みたいな事をすると行けたり行けなかったりするかもしれません…。
|
|
9
|
+
で、結果がUTF-8だったらmb_convert_encoding()しないでjson_decode()かける、みたいな事をすると行けたり行けなかったりするかもしれません…。
|
|
10
|
+
|
|
11
|
+
####追記
|
|
12
|
+
|
|
13
|
+
あと、このへん…
|
|
14
|
+
|
|
15
|
+
[PHPのjson_encodeがUTF-8がエラーになってしまう時に対処方法](https://deaimobi.com/php-json-encode/)
|