I\'m trying to get data from data.php via jQuery ajax call.
data.php
My code looks like this:
var jsonData; $.ajax({ url: \'data.php\',
You should be using header() function in your PHP to set the proper response header (content type and charset):
header()
PHP
header('Content-type: application/json; charset=UTF-8');
You should also repeat this at the top of HTML pages:
See also:
PHP UTF-8 cheatsheet