I have a little problem. On a wordpress site I have a form on a page where I can submit info that is saved on the database. The problem is that when I use special characters they are not saved in utf-8 so I have to go to the WP-Admin and fix that characters.
How can I set to save the data on database using the utf-8 charset.
First you need to make sure the table was created with UTF -8 and secondly when connecting to the database you need to set it to UTF -8 with “SET NAMES utf8” before doing any queries.