Reputation: 8010
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.
Upvotes: 1
Views: 69
Reputation: 173522
There can be a few factors:
SET NAMES utf8
[mysql_set_charset()
for the deprecated API])header('Content-Type: text/html; charset=utf-8')
)Upvotes: 1