Insert special characters into mysql and pull these identical values in the web application [duplicate]

0

Good evening, I need to add values to the database by mysql so that they have special characters. I can add, but I can not pull the values correctly, they end up coming with symbols in place of the special characters, for example ...

Computer science
Computer science

    
asked by anonymous 27.07.2017 / 05:09

2 answers

1
  • Make sure that the values are correct (with emphasis) in the database.
  • You have not specified which language you are using, but by the tags I believe it is PHP. Configure the charset of the pages correctly. Ex:

    header('Content-type: text/html; charset=ISO-8859-1');

27.07.2017 / 05:31
1

I was able to solve it in the following way, Thank you Fabiano Lira, Gato.

mysql_set_charset("utf8");
    
27.07.2017 / 05:52