How to encode cyrillic in mysql?

后端 未结 4 1178
挽巷
挽巷 2021-01-14 08:14

what\'s up? :-)
I have one problem and i hope you can help me with it.

One friend of mine have a simple solid html website and i implemented little php; CRUD sys

4条回答
  •  广开言路
    2021-01-14 08:40

    Make sure you call this after connecting to database.

    mysql_query("SET NAMES UTF8");
    

    Also make sure that HTML file has charset meta tag set to UTF-8 or send header before output.

    header("Content-Type: text/html; charset=utf-8");
    

提交回复
热议问题