Answers for "utf8 encoding php ini"

PHP
2

utf8 encode php

$a = "Não";
  
echo utf8_encode($a);
Posted by: Guest on December-10-2020
1

utf8 php

//PDO
$conn->query("SET NAMES utf8");
or
$conn->exec("set names utf8");
//mysqli
mysql_query("set names 'utf8'");
Posted by: Guest on March-07-2022

Browse Popular Code Answers by Language