Q:

How i prevent to dispose error characters from database?

I´m spanish and we use for example the letter "ñ" and some accent marks. I'm having this problem where I have a database in PhpMyAdmin where there are some data the includes the "ñ" and accent marks. When I use that information on the screen it shows an error character with a question mark. What can i do to prevent that? Not using the letters and accent marks is not an option.
This is an example of what I see: https://ibb.co/NjkRf9D (Not possible to upload the image with IMGur).

A:

This happens because your database is not configured as Unicode
Try this :
ALTER DATABASE your_database_name charset=utf8;
ALTER TABLE your_table_name charset=utf8;

and read  this article on handling Unicode also
Official documentation on Charset

