javascript - Arabic support db,php & js -
when type comment in arabic inside textarea, directly appears in site correctly "عربي" , send database.
when refresh page appears "عرب�"
i tried type text directly in database using "phpmyadmin" , site shows "?????".
i used code in html pages:
<meta http-equiv="content-type" content="text/html;charset=utf-8"> <meta charset="windows-1256">
and encoding of database utf8_unicode_ci.
anyone know how resolve this?
try executing query before others :
$query="set names utf8";
Comments
Post a Comment