瀏覽代碼

add JSON_UNESCAPED_UNICODE

visuddhinanda 3 年之前
父節點
當前提交
29e8b0c78d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/UpgradeWbwTemplate.php

+ 1 - 1
app/Console/Commands/UpgradeWbwTemplate.php

@@ -86,7 +86,7 @@ class UpgradeWbwTemplate extends Command
                 ];
 
             }
-            $sent = \json_encode($wbwContent);
+            $sent = \json_encode($wbwContent,JSON_UNESCAPED_UNICODE);
 
 			$newRow = Sentence::firstOrNew(
 				[