html - store Hebrew in database with utf- 8 encoding using php and mysql -
i building web site database in hebrew (using php , mysql). on general use chrome test job... today tried explorer :-0 (yeh... must thinking "why f*** it... ;) ). found out data sent explorer stored in ????? , cannot used.
i use <meta http-equiv="content-type" content="text/html; charset=utf-8" />
on main page
and header('content-type: text/xml charset=utf-8');
on php page sends xml files (after receives request)
on connect.ini.php included following code:
mysql_query("set names 'utf8'",mysql_connect($host, $user, $password));
my ajax javascript is:
if(xmlhttp.readystate==4||xmlhttp.readystate==0){ gender=document.getelementbyid("gender").value; xmlhttp.open("get","file.php?gender="+gender , true); xmlhttp.send(null); }else{ settimeout('submit_quick_start_form()',1000); }
as said before in chrome fine...
please guys...
(click full size)
shown in first 3 gets, in order, found chrome, firefox, , ie produce different results. guess theoretically, firefox right. in case, give same result (next 3 gets in order), if encodeuricomponent() input.value. such:
xhr.open('get', location.href+"?"+encodeuricomponent(test.value), true)
......
<input type=text id=test name=test value="שלום מישה">
Comments
Post a Comment