11
In my web application, I am using a Mysql database that has the table EditableContent.
This table has the field content, who’s kind text and has as input format utf8-bin.
In the database the characters appear normally, but when fetching them and displaying them via method echo,
accented characters are replaced by � .
By using the method uf8_decode($meu_texto), the same characters are replaced by ?.
In one row of the table, the characters are shown normally, and in another, only the initial part.
obs. I’m using the meta tag:
'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'
And the contents were copied to the Notepad++ database, and the file formatting was as Codificação em UTF-8(Sem BOM)
Possible duplicate of Problems with PHP encoding in UTF-8
– Amadeu Antunes