Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-27-2007, 12:01 PM #1
- Join Date
- Aug 2007
- Thanked 0 Times in 0 Posts
Japanese charset support in XMLHttpRequest( )
When the AJAX calls the php file, I've noticed the data in the $_POST are garbage data.
I think the problem is during GetXmlHttpObject execution to past the Posted data to php file.
Please teach me to set the charset in AJAX supporting Japanese charset.
Currently, I am using the following settings:
PostgreSQL ver 7.4.1 encoding: UNICODE
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=shift_jis'");
header('Content-Type: text/html; charset=shift_jis');
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">