For example if I search for the name Åsa i only want to get the name Åsa and not Asa, same with Björn instead of Bjorn
$query="select * from users where username like 'Björn'";
$result=mysql_query($query);
$num=mysql_num_rows($result);
echo"$num";
$i=0;
while($i<$num){
$id=mysql_result($result,$i,"id");
$name=mysql_result($result,$i,"username");
echo"<br/>$id,$name";
$i++;
}
Results
34,Björn
67,Bjorn
only result 34 is supposed to be displayed
I am using
mysql_query("SET NAMES utf8");
mysql_query( "SET CHARACTER SET utf8");
The database, table and column are set to utf8_unicode_ci