Реализация метода POST в Ajax для латиницы и кириллицы:
function loadXMLDoc_2(url,mess){
var copyright='smirnoff04@mail.ru';
var mess2=urlencode(mess,copyright);
if (window.XMLHttpRequest) {
param="text="+mess2;
req = new XMLHttpRequest();
req.onreadystatechange=formPost; // function
req.open("POST", url, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send(param);
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = formPost;
req.open("POST", url, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
param="text="+mess2;
req.send(param);
}
}
}//func_end
Источники:
Development: Drew McLellan + Michael Smirnov
http://www.xml.com/lpt/a/2005/02/09/xml-http-request.html
http://www.smirnov.sp.ru/w/cgi_java/cgi_programming2.html