Home > Website > My website texts (from files) show up as "???" (incorrect encoding)

My website texts (from files) show up as "???" (incorrect encoding)

It is possible that your files are encoded in the wrong format.

You should always use UTF-8 encoding when creating your website. Your website should also have UTF-8 meta tag.

You may also try to add this line at the top of your index.php page: header('Content-Type: text/html; charset=utf-8');

Also, there could be a problem if your files are encoded in "UTF8 with BOM" support.

You should open these files on your computer and encode them in "UTF8 without BOM" support. And then upload files again. You can change file encoding with software such as Notepad++.