json_encode($str, JSON_UNESCAPED_UNICODE) not working as expected [duplicate] I’m not getting the expected output using PHP installed on my computer for this: When running the same code on different online PHP fiddles I get รณ original character correctly. I’m on Windows 10.