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:

enter image description here

enter image description here

When running the same code on different online PHP fiddles I get รณ original character correctly.

enter image description here

I’m on Windows 10.