Page 1 of 1

File ecoding vs. character encoding

Posted: Wed Apr 08, 2009 10:47 am
by icesolid
When I save a PHP file or any file for that matter, my IDE saves it with UTF-8 encoding. At the top of every page I also have a Content-Type tag that sets the character set to UTF-8.

Since I have that UTF-8 character set declared at the top of each page, does the PHP file need to be UTF-8 encoded? Is ANSI OK?