I am portuguese and I am making a website that has vegetable names.
However, the encoding its not consistent. For example the word Agrião (watercress) sometimes comes out correctly but other times it comes out like Agrião.
As I refresh the page it picks one of them by random. Sometimes it’s correct, sometimes it’s not.
There can be a few factors:
SET NAMES utf8[mysql_set_charset()for the deprecated API])header('Content-Type: text/html; charset=utf-8'))