I have a simple form to insert products in a mysql table but it's not working with accented words.
For example:
If I post the word "Calcao" it shows up but if I post the correct Portuguese word "Calção", it doesn't show.
Can anyone help me setting the encoding/charsets?
I'm running this on localhost with MAMP and I have tried to set Database charset to utf8_general_ci
and utf8_swedish_ci
but none seem to work.
I have:
- connection.php that connects to database;
- add.html that shows the form to insert data;
- add.php who takes action and validate data;
- view.php where data will apear.
If I post the word "Calcao" it shows up but if I post the correct Portuguese word "Calção", it doesn't show.