php & json – Chinese characters

I’m working on a site, who has a bunch of translations.
We wanna have chinese on it, ’cause its an “emerging” market for our biz market.

This will work!

$translations = file_get_contents(getcwd().'/json/translations.json');
$translations = json_decode($translations, JSON_UNESCAPED_UNICODE);

Leave a Reply

Your email address will not be published. Required fields are marked *

*