I ask to help PHP experts. Trying to read json file:
{ "logo": { "position":"right", "width":"180" }, "image": { "size":"big" }, "menu": { "items":"Русский" } } PHP code:
header('Content-type: text/html; charset=UTF-8'); $file = file_get_contents('tegs.json', FILE_USE_INCLUDE_PATH); $obj = json_decode($file, true); print $obj["logo"]; When I delete Russian characters from a file, everything is read and works. But with the Cyrillic alphabet is not friendly. The php file encoding is utf-8. I tried different encodings of json-file: ANSI, Unicode, Utf-8.
file_get_contents- Invision