Hi Men
please help me to solve this problem
i have textbox in html page
i require arabic data from php page using method POST with ajax to view in the textbox
i always got a strange sympols in the textbox
although it works fine when view the recieved data in <div>
is this problem with the textbox
i think there is a way to specify data encoding before post it with ajax
im using this code to post data :
[PHP]xmlhttp.open("p ost",serverpage ,true);
xmlhttp.setRequ estHeader("Cont ent-type", "applicatio n/x-www-form-urlencoded");
xmlhttp.setRequ estHeader("Cont ent-length", datatopost.leng th);
xmlhttp.setRequ estHeader("Conn ection", "close");[/PHP]
or
should i do some thing to change textbox encoding ?
Greeting
please help me to solve this problem
i have textbox in html page
i require arabic data from php page using method POST with ajax to view in the textbox
i always got a strange sympols in the textbox
although it works fine when view the recieved data in <div>
is this problem with the textbox
i think there is a way to specify data encoding before post it with ajax
im using this code to post data :
[PHP]xmlhttp.open("p ost",serverpage ,true);
xmlhttp.setRequ estHeader("Cont ent-type", "applicatio n/x-www-form-urlencoded");
xmlhttp.setRequ estHeader("Cont ent-length", datatopost.leng th);
xmlhttp.setRequ estHeader("Conn ection", "close");[/PHP]
or
should i do some thing to change textbox encoding ?
Greeting
Comment