how to save hindi text in JSON

孤者浪人 提交于 2019-12-25 08:58:47

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!