Save Data in Arabic in MySQL database

前端 未结 7 1872
我在风中等你
我在风中等你 2020-11-22 14:13

I have changed the charset of the tables and of the column, i get the arabic text as ???? marks in MYSQL database

here is the design of the table

  C         


        
相关标签:
7条回答
  • 2020-11-22 15:15

    We can convert database or db table to uft8 supportive with below query:

    ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    ALTER TABLE tablename CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    ALTER TABLE columnname DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
    

    Hope it helps !

    Read More @

    https://kb.mediatemple.net/questions/138/Default+MySQL+character+set+and+collation#gs

    http://hollyslog.com/technology/how-to-store-arabic-or-hebrew-characters-mysql-database

    0 讨论(0)
提交回复
热议问题