I have a problem when displaying results from a database in an HTML file in two computers.
So, in one computer it shows a name like this:
SAUL FRANCISCO GARCÃA RODRÃGUEZ
The collation of the database is latin1_swedish_ci
and the collation of the tables is utf8_general_ci
.
In the other computer it shows like this (I want it to be this way):
SAUL FRANCISCO GARCÍA RODRÍGUEZ
The names get listed in a <select>
tag The language of the two browsers is English and the Html file is the same on both environments so I think It has to do with the charset or encoding for the php.ini file
I have tried changing the values in php.ini
but nothing changes and I can't find the answer anywhere.
The only difference is that where the results get displayed as I want I installed WAMP and in the other computer I installed Apache, MySQL and PHP separately.
Sorry if the details are not very informative but I have no clue where I'm going wrong.
P.S. On both databases the data looks like this from the MySQL console:
SAUL FRANCISCO GARCÃA RODRÃGUEZ