Data entry by phpmyadmin does not recognize UTF-8 collation [duplicated]

0

There are times when I enter information on my website by phpmyadmin, making a new insert, but when I update my website to see the changes, it shows me something like this:

The checks for each field are in uft8_spanish_ci, as shown in the following image:

Does anyone know what this problem is? I even have the tags

<meta charset="utf-8"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

on the page, but still does not recognize it ..

    
asked by Marvin Morales 19.11.2017 в 21:29
source

1 answer

0

Add this to your PHP file after making the connection to the database.

mysqli_set_charset($conexion, "utf8");

Where $ connection is your connection variable to the BBDD

    
answered by 19.11.2017 / 22:55
source