Well, I have a query that takes the data from a database table and stores it in an array, however, the data in the database has accents.
When I print on the screen the data with
<?php echo $array["nome"]; ?>
How can I fix this?
Well, I have a query that takes the data from a database table and stores it in an array, however, the data in the database has accents.
When I print on the screen the data with
<?php echo $array["nome"]; ?>
How can I fix this?
Try this:
<?php echo utf8_encode($array["nome"]); ?>
or:
<?php echo utf8_decode($array["nome"]); ?>
See the documentation at: