Explorar el Código

add JSON_UNESCAPED_UNICODE

visuddhinanda hace 3 años
padre
commit
29e8b0c78d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(
 				[