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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -