I have this Arabic text: الخط الكوفي
. When I try to save it in a MySQL database it doesn't save.
Is there an开发者_StackOverflow社区y way to save it as the original text?
Make sure your MySQL instance and tables are set to take UTF-8, not latin1.
Section 9.1 of the manual covers this.
I'd take a look at the mysql docs for Character Sets. The default character set latin1
most likely doesn't handle the characters you're trying to use. You'll have to switch your tables over to UTF-8 if you want to store that properly.
精彩评论