4
I’m reading my table categories from the database and when I have words with cedilla or accents, they appear in my project with strange characters.
For example, in the categories I have a title Evaluations, in my project this title appears as: AVALIA��ES
.
I was researching about this problem and I realized that I had to have in my database the Grouping (Collation) as utf8_general_ci, and also that at the top of my page should contain this goal: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
However, even with these two methods to solve the problem, I still have my title as AVALIA��ES
.
Someone knows what might be going on and how I can fix this?
Thank you marcosvinicius. The solution was just that, but in my case I am using Pdo, it has to be like this: array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
– Mib
OK I did the above procedure and it worked. congratulations!
– user27537
Comrade, a lot of trouble. I had this problem here and you helped me a lot.
– user36562