In my web application, I'm using a MySQL database that has the EditableContent
table.
This table has the content
field, which is of type text
and has the input format utf8-bin
.
In the database the characters appear normally, but when searching for them and displaying them via echo
method,
accented characters are replaced with �
.
When using the uf8_decode($meu_texto)
method, the same characters are replaced with ?
.
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 content was copied to the NotePad ++ database, the formatting of the file being as Codificação em UTF-8(Sem BOM)