将阿拉伯文字保存到MySQL数据库中 [英] Save Arabic text into MySQL database
本文介绍了将阿拉伯文字保存到MySQL数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个阿拉伯文字:الخط الكوفي
.当我尝试将其保存在MySQL数据库中时,它不会保存.
I have this Arabic text: الخط الكوفي
. When I try to save it in a MySQL database it doesn't save.
有什么方法可以将其另存为原始文本?
Is there any way to save it as the original text?
推荐答案
确保您的MySQL实例和表设置为采用UTF-8,而不是latin1.
Make sure your MySQL instance and tables are set to take UTF-8, not latin1.
手册的 9.1节对此进行了说明.
Section 9.1 of the manual covers this.
这篇关于将阿拉伯文字保存到MySQL数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文