I said, when you send the headers. Declaring them in the client-side documents isn't enough.
First, you need to declare them in any server-side document you are using. For PHP...
Second, You might need to declare the Content-type header in the AJAX when you send it.PHP Code:header('Content-Type: text/html; charset=utf-8');
Code:obj.open('POST', url, true); obj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); obj.setRequestHeader('Content-length', parameters.length); obj.setRequestHeader('Connection', 'close'); obj.send(parameters);




Reply With Quote