Convert table data to UTF8

1

In my table there are characters in Japanese, Korean and Chinese, but they are not converted, when I echo with php, so it shows ?????? ,

In my doubt would be, how can I convert the DATA of this table?

the table is already in utf8_general_ci

Does anyone know a php or sql code that does the conversion?

I created a php code with utf8_encode in the variables but added ????? in the bank

    
asked by anonymous 16.11.2017 / 15:48

1 answer

0

Inside the head of HTML you have to <meta charset="UTF-8"> to allow the page to display such characters. And in your connection to the database, you have to define that you are using data in utf-8 format. To do this, use the function set_charset () .

    
20.11.2017 / 00:31