I have username and password htm form if you insert english username will accept because will be matched with username in mysqltable ,,,but if the username in different language than english the user name in mysql will be like &#1571&#1581&#1605&#1583
so when non-english username sing in his own username language and the username already in mysql in his own language but the sumbit will be like ÚÉÓÁ !=أ&#1581&#1605&#1583

here my code

<?php
$var = '';
include('mecont.php');


$myusername=$_POST["myusername"];
$mypassword=$_POST["mypassword"];


$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password

='$mypassword'";

$result=mysql_query($sql);

$count=mysql_num_rows($result);

if ($count==1) {

session_register("myusername");
session_register("mypassword");

header("location:inboxtitle.php");
}

else {

include('wrong.php');

}

?>

how make code match between them either

$_POST["myusername"] = #1571;حمد
or
username=ÚÉÓÁ


myusername => name of form field
username => name of table sql filed

thanks