Hello
I m having great problem with indic(indian language) convert. for example
Say I wrote something by google indic for bengali
Now I copy this text and paste into textbox of my web form
the after submitting it not showing desire result. my code is

$tvalue=$_POST['textfield'];
echo ord($tvalue).' = ';
echo chr(ord($tvalue));

but if I use

echo $tvalue

it correctly show the text I submitted.
Please help me what is the problem
Thanx all

For starters unless $_POST is only a single character ord() will not work.
Secondly it only returns ascii values. http://www.asciitable.com/ I assume the characters you would be using are in the utf-8 spec.

There are some functions posted in the manual: http://php.net/manual/en/function.ord.php that seem to indicate utf-8 compatibility.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.