Hello,
here goes mine trouble...
i have on server some images
i make ajax call on my action.php wich looks like this:
<?php
header('Access-Control-Allow-Origin: *');
$imagesDir = '';
$images = glob($imagesDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE);
echo json_encode($images, JSON_UNESCAPED_UNICODE);
?>[/code:20bikun7]
it works but i have local characters problems.
when i set header to:
[code:20bikun7]<?php
header('Content-type: text/html; charset=UTF-8');
$imagesDir = '';
$images = glob($imagesDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE);
echo json_encode($images, JSON_UNESCAPED_UNICODE);
?>[/code:20bikun7]
i manage to get rid of characters problem but it works only in NW.js and i have no ajax responce in any major browser...
any idea how to fix this?