Storing Urdu characters in MySQL [duplicate]

为君一笑 提交于 2019-12-23 05:51:33

问题


I am having problems storing urdu characters in Mysql table. Values from HTML form are stored in tables but when I view in phpmyadmin, it shows weird characters.

I have tried ucs2 and utf8 collations but still new values which I store are unknown characters.

What is the correct collation type? Or is there anything else that is wrong?

Thanks


回答1:


Try setting your column as utf8-utf8_general_ci like this if you are using MySQL workbench.

Then you will be able to save urdu characters

Recommend using utf8_unicode_ci for accuracy



来源:https://stackoverflow.com/questions/39438797/storing-urdu-characters-in-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!