Quote:
Originally Posted by frank727
See attachment. This is from Firefox's web console debugging tool. And yes, most of my .php pages show this error.
|
The easiest way to specify the encoding of all of your HTML documents is to declare it site-wide using an HTTP header; just make sure every document actually conforms to that encoding. For example, if using Apache, you can put
AddType UTF-8 .html in a
.htaccess file to specify that the encoding of all HTML files with that particular extension is UTF-8.
Quote:
Originally Posted by frank727
PHP Code:
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
|
The second line is not a correct way to specify encoding. The HTML4/5 way to do it is via the first line. The HTML5-specific way is through
<meta charset="UTF-8">.