UTF-8 characters don't display correctly

前端 未结 7 1199
清酒与你
清酒与你 2020-12-11 02:41

This is my PHP code:



        
7条回答
  •  难免孤独
    2020-12-11 02:50

    if you are just using php echo with no html headers etc., this worked great for me.

    $connect = mysqli_connect($host_name, $user_name, $password, $database); mysqli_set_charset($connect,"utf8");

提交回复
热议问题