Inserting Gujarati text into a MySQL tables results in junk characters and unreadable text

后端 未结 2 730
一个人的身影
一个人的身影 2021-02-06 04:37

I have three MySQL tables and I\'m inserting Gujarati content into them. When I insert two tables, they\'re inserted fine and are readable but in one table, it is showing junk c

相关标签:
2条回答
  • 2021-02-06 05:04

    MySQL has per-table character set settings.

    You can check which character set you are using for each table - see How do I see what character set a MySQL database / table / column is?.

    If that is your problem, you might be able to covert the table in question, using:

    ALTER TABLE mytable CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    0 讨论(0)
  • 2021-02-06 05:09

    Just you have to like ...

    in Your Mysql DataBase Table.. Just Change 'Collation' of column Name. To 'utf8mb4_general_ci'.

    and you can store any Gujarati font in database

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