开发者

Save Arabic text into MySQL database

开发者 https://www.devze.com 2023-01-24 18:09 出处:网络
I have this Arabic text: الخط الكوفي. When I try to save it in a MySQL database it doesn\'t save.

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.

0

精彩评论

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

关注公众号