Skip to content Skip to sidebar Skip to footer

How To Send And Retrieve Data From Web Service Using Php And Android

I am developing an application in which I am getting data from web service and displaying in the Android mobile. But the problem is while getting Turkish data it is not displaying

Solution 1:

In the Php code just change the below lines

$string = html_entity_decode($education[$i]['comparision_name'], ENT_QUOTES, "utf-8");
 $content.="<education id='".$education[$i]['id']."'>".$string."</education>";

to

$string = $webservice->unhtmlspecialchars($education[$i]['comparision_name']);
$content.="<education id='".$education[$i]['id']."'>".$string."</education>";

See htmlspecialchars.

Post a Comment for "How To Send And Retrieve Data From Web Service Using Php And Android"