问题
I have some text in hindi.
Is it possible to save that text in json file. (.json)
I will save this on S3 and later render it inside my Ionic2 app.
回答1:
Yes, It is possible. Simply use json_encode($a, JSON_UNESCAPED_UNICODE)
to prevent escaping Unicode characters.
For more information you can see the documentation:
http://php.net/manual/en/function.json-encode.php
来源:https://stackoverflow.com/questions/46138403/how-to-save-hindi-text-in-json