My response function in my API written in php is like:
function response(array $response)
{
header('Content-Type: application/json');
echo json_encode($response);
exit;
}
BUT my server returns data like:
{"items":[{"feed_id":2,"title":"\u062d\u0631\u0642 \u0643\u0644\u064a \u0644\u0644\u062d\u0648\u
where :
\u062d\u0631\u0642 \u0643\u0644\u064a \u0644\u0644\u062d\u0648\u
is of no meaning, i thought this issue is due to character encoding so i have added:
header('Content-Type: application/json; charset=utf-8');
but still getting the same response.
Any idea on how to fix this issue using squareup okhttp:2.2.0 in android?