Hi everybody,
I've tried some PHP codes by
http://www.w3schools.com/php/php_if_else.asp
I wrote a page in UTF-U (Unicode) and it shows a blank page
then I try in ISO-8859-1 then the page shows all.
=> Page in Unicode => is blank
PHP Code:
<html><head><title>C?ng nghe th?ng tin VN</title>
</head>
<body>
<?php
$nd=$_GET['t'];
$noiquy = "Đọc nội quy của VNIT!";
if ($nd=="")
echo "Trang chu VNIT";
elseif ($nd=="noiquy")
echo "$noiquy";
else
echo "Error";
?>
</body>
</html>
-------------- and page wrote in none-unicod
PHP Code:
<html><head><title>Cong nghe thong tin VN</title>
</head>
<body>
<?php
$nd=$_GET['t'];
$noiquy = "Doc noi quy cua VNIT!";
if ($nd=="")
echo "Trang chu VNIT";
elseif ($nd=="noiquy")
echo "$noiquy";
else
echo "Error";
?>
</body>
</html>
please help me how to write in Unicode ?
thank you and sorry for my bad English :surprised: