PHP :- Not showing the characters correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ALL,
   
  Here is My code :-
   
   
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
$db_name  = "test";
$db_username = "root";
$db_password = "";
$hostname  = "localhost"; 
  if(!$conn = mysql_connect($hostname,$db_username,$db_password))
{
 echo("Error Connecting TO MYSQL Server !");
 exit;
}
mysql_select_db($db_name, $conn) or die ("can not connect to Database $db_name");
  
$query = "SELECT c1 FROM matter1";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
   
  echo $row[0];
echo "<br>";
echo "Iñtërnâtiônàlizætiøn";
?>
   
   
  I am getting out put as :- 
   
  I&#55698;&#57074;n&#11561;?iz&#27945;?>Iñtërnâtiônàlizætiøn
   
  ( ** I have stored Iñtërnâtiônàlizætiøn in the matter1 table)
  if i am echoing directly it is showing correct but if i am taking it from DB then it is not showing correct why?
   
   
   


Thanks & Regards... 
  Roshan....................
  


       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux