简体   繁体   中英

characters issue with my wordpress theme

I creat new customize theme for wordpress and all things was right, just when I upload it on host my characters changed to something like نوشته‌های تازه . I use meta charset="UTF-8" in my php code, and I use this query in phpmyadmin: SET NAMES UTF8 ; http://maideh.ir/issue/ --> its my uploaded theme! can any one help me? (excuse me for my poor english language;-))

哦...在最新行“?>”之后的我的functions.php中,我有2empty行(输入),在删除thease空行之后,它可以正常工作!

make sure that your host characters are in utf-8, your document charset type is also utf-8. using

mysql_query('set names utf8')

brefore you query the database. for example

mysql_query('set names utf8');

mysql_query('select * from table')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM