php - encoding in doctrine or twig have problems -


i have project written symfony framework , use doctrine orm , twig dor template engine.

project no have problem on system(local), on server: have problem in encoding. use utf8 encodin , utf8_general_ci collection charset.

as say, no have problem in local , data right on server in phpmyadmin, no on website's pages(my symfony project), know pages have true encoding because static text in twig right , data read mysql have problem plz see site:

http://iaubir.cloudsite.ir/blog/zeinali

thank help


edit: problem imported row phpmyadmin(import structure & data), if login admin panel , post new post, display correctly

i update field value "دروس" , display correctly in site, in phpmyadmin have "دروس" value try detect encoding of "دروس" this site , detect: source encoding: utf-8 displayed as: windows-1258

probably problem imported data, wouldn't use phpadmin such task.

try export database:

mysqldump -uroot -p database -r utf8.dump 

and import it:

mysql -uroot -p --default-character-set=utf8 database mysql> source utf8.dump 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -