Page 1 of 1
PHP File Encoding
Posted: Fri Oct 17, 2008 12:08 pm
by icesolid
What is a better format to save my PHP files in? UTF-8 or Ansi?
Is using UTF-8 better for special chars in forms?
Re: PHP File Encoding
Posted: Fri Oct 17, 2008 12:24 pm
by VladSun
UTF-8 is better.
Re: PHP File Encoding
Posted: Fri Oct 17, 2008 12:33 pm
by icesolid
Why is that?
Re: PHP File Encoding
Posted: Fri Oct 17, 2008 1:02 pm
by VladSun
You can get a lot of information about it :
http://en.wikipedia.org/wiki/UTF-8#General
Re: PHP File Encoding
Posted: Fri Oct 17, 2008 4:31 pm
by requinix
Beware the BOM though - it'll cause you headaches if you don't know about it.
Re: PHP File Encoding
Posted: Fri Oct 17, 2008 8:15 pm
by André D