1
My website is popping up like this http://www.adota-me.tk/anuncio.php?id_anuncio=1454792030
With some strange characters. I’ll tell you everything I put.
In php this:
ini_set('default_charset','UTF-8');
header('Content-type: text/html; charset-UTF-8');
Now in PHPMYADMIN, the database is defined as utf8_bin
, and the data in the columns are defined as latin1_general_ci
for each field.
What’s wrong for it to work with ^~
and other accents of the Portuguese language?
I suggest you change the collate of the bank to only one, use the utf8_general_ci, both for columns and for the database, if this may bring you headache, also check on the meta tag which charset is being set.
– Dunga Cardoso
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
– Amadeu Antunes
Why don’t you try to match the collate of the bench and the columns to see how it looks..
– Dunga Cardoso
funciounou, although phpmyadmin show strange characters in php this is no longer visible
– Amadeu Antunes