Guys have a certain php file that parses the data from the Mysql database and gives it in Json format. There are Cyrillic in the database and Json gives Cyrillic space
???
signs, added in php mysqli_set_charset($con, 'utf8'); everything is ok now just the digits to be made uncode , to the print (json_encode($data)); I add JSON_UNESCAPED_UNICODE but then in the browser writes
Warning: json_encode () expects parameter 2 to be long
Help me figure out the exact same function works on my wamp servere and no problems.