I am trying to output the text Nome de usuário but it displays á with a big square, why is this and how can I fix it?

Is this the output from a query to the database?

If so:

  • What collation and charset are the tables (and the database as a whole set to use)?
  • What charset have you set the connection to the database to use?
  • What database server software is being used eg. MySQL?
  • What extension is being used to interact with the database eg. mysql_, mysqli_, PDO, etc?