Cannot compare with unicode input values
Posted: Wed Aug 09, 2006 8:47 am
Hello,
I am trying to compare the unicode devangari string with users input. What I did was checking the constant values with user's input. It's not working with unicode input of devanagari but when I compare with english input it's working.
In above script, even though the input is similar to $check1 variable, it's not going inside the if condition.
What may be the problem?
Do I need to change the php configuration file ?
Hoping to get the response soon !
Dibyendra
I am trying to compare the unicode devangari string with users input. What I did was checking the constant values with user's input. It's not working with unicode input of devanagari but when I compare with english input it's working.
Code: Select all
$input_user = $HTTP_POST_VARS["answer_nepali"];
$check1 = "१२३४५"; //devanagari value for 12345
if($input_user == $check1){
print "correct answer!";
}What may be the problem?
Do I need to change the php configuration file ?
Hoping to get the response soon !
Dibyendra