how to use utf8 for non-Endlish characters in post method in php : I need to send text from android to database on server and I face with some question mark for non-English characters and following codes are my php code :


    <?php  header('Content-Type: text/html; charset=utf-8'); 
    $con=mysql_connect("xxxxx","xxxxx","123456");
    mysql_select_db("xxxxx",$con);
    mysql_query("SET CHARACTER SET 'utf8'", $con);
    $user=$_POST['username','utf8'];
    $matn=$_POST['matn','utf8'];
    $status=$_POST['status','utf8'];
    if($user!=""){
    $sqlQ="insert into content(username,matn,status) VALUES('$user','$matn','$status')";
    $result=mysql_Query($sqlQ);
    if($result){
    print "ok";
    }
    else
    {
    print "no";
    }
    }else{
    print "-";
    }
    mysql_close($con);
    ?>