Default file encoding would be?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Default file encoding would be?

Post by kaisellgren »

Hi,

I'm interested. Are you guys using ISO8859_1 as default file encoding, too? Of course some language files may have UTF-8, but for core files, etc?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Default file encoding would be?

Post by s.dot »

Most likely. I believe the 'default' for php is ISO-8859-1, at least it is for htmlentities().
However, I make everything UTF-8, and pass 'UTF-8' as the charset parameter to htmlentities().

I don't think it matters (barring what you want, of course), but be sure to keep it universal.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply