What is the best format to save my files in?
The advised way to go is to use UTF-8 everywhere in your web application. It includes :
- File encoding
- Database charset and encoding
- String handling
- HTML charset output
A nice cheatsheet : http://developer.loftdigital.com/blog/php-utf-8-cheatsheet
Edit : Just want to add, related to your question context, that PHP don’t handle file encoding in UTF-8 with BOM. Use UTF-8 without BOM and you’ll be just fine.
I vote fore UTF-8 without BOM. Note though that if you only use regular English characters, ASCII and UTF-8 files will almost always be identical! This means that your editor may read the charset as ASCII even though you saved it as UTF-8.
Unless you do a lot of CJK work, you should save your files in UTF-8 without a BOM.
UTF-8 is what I use…
It is best for English.