File ecoding vs. character encoding

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

File ecoding vs. character encoding

Post 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?
Post Reply