Save Arabic text into MySQL database

后端 未结 2 1131
北海茫月
北海茫月 2021-01-28 02:31

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?

2条回答
  •  野性不改
    2021-01-28 03:05

    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.

提交回复
热议问题