开发者

How do I get both arabic and english text to show in a wordpress blog post?

开发者 https://www.devze.com 2023-01-08 10:47 出处:网络
I am trying to make a blog that has both arabic and english as primary languages.I\'m using unicode (UTF-8) as my character encoding but when I paste a chunk of arabic text into the editor, it comes o

I am trying to make a blog that has both arabic and english as primary languages. I'm using unicode (UTF-8) as my character encoding but when I paste a chunk of arabic text into the editor, it comes out as all "?". It shows up fine in the editor when I first paste it, but then after clicking update, it changes all the arabic text 开发者_运维知识库to junk. What can I do to keep the arabic text displaying correctly?


Looks like a database charset problem. Here are a few things you can try:

Easiest

Check in Settings > Reading that you've got encoding set to UTF-8.

Easy

Open up your wp-config.php and find this line:

 define('DB_CHARSET', 'utf8');

Change it to:

 define('DB_CHARSET', '');

PITA

Convert your database charset to UTF-8, as explained in this article.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号