Can't get the encoding right in MySQL

前端 未结 2 1786
慢半拍i
慢半拍i 2021-01-22 12:51

I have been struggling with encoding problems in MySQL for a while. I am building a database that will contain not only Latin but Cyrillic and Arabic text as well. So here is an

2条回答
  •  走了就别回头了
    2021-01-22 13:28

    ensure that you have this meta in your page's header

    
    

    Also you could try executing this query right after connecting to the db :

    "SET NAMES 'utf8'"
    

    Hope this helps. Cheers

提交回复
热议问题