Non standard characters handle in php

by Jayanthi 2012-06-06 19:05:41

Non standard characters handle in php

The "Ë" character does not match. Because,the browser then sends the Ë character, it will send the utf-8 code 0xc38b, while the same character is 0xcb.

So use this header charset utf-8.

header("content-type: text/html; charset=utf-8");





header("content-type: text/html; charset=utf-8");
if(isset($_POST['submit'])) {
$string = $_POST['tit'];
if($string =="Ë")
echo "Yes";
else
echo "No";
$vname = str_replace("Ë","AAAA",$string);
echo $vname."
";
echo $string;
}
?>



Title:


1411
like
0
dislike
0
mail
flag

You must LOGIN to add comments