PDA

View Full Version : ajax+chinese characters


cloudy
07-11-2008, 09:27 AM
hi there..i hsve some problem about the Ajax + chinese characters...

i m using the ajax script to pass the form value through a URL to a asp files to execute the update sql. i have pass a chinese characters "日出" through the ajax , such as below..

url= url + "&formvalue=" +formvalue;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
xmlHttp.onreadystatechange=stateChanged;



but when i save it in the databse, it save the "日出" to "??" and when i display out it also show "??" since in the DB the record is saved as "??"

anyone can give me a hand? i m very confuse for tis problem.
plz give me a hand. thank you

abduraooft
07-11-2008, 12:30 PM
Are you able to save them properly by a normal submit, without ajax?

cloudy
07-11-2008, 02:33 PM
hie..i need to use the ajax function to do the edit in place like the flickr .com...som from tis edit the textbox in place i need to use the ajax method to pass the form value to the server-side script.but i duno why..it cant save the proper chinese word.but is save the "???".plz help.thank you. for my other function that is using normal form, it can save the chinese characters.