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.
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.