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);
I’v deployed a work on one of my clients – a french one – server and even using charset=”UTF-8″ meta in HTML, some characters were displayed different from what they should.
cópia was showed coÌpia
I had to add the following line to .htaccess – forcing the Charset to be UTF-8
disabling Default Charset! 🙂