How can I set what encoding must be used by a site?

On some systems it is UTF-8, on others latin-1. How do you set this? Is it something in php.ini?

(I know you can set the encoding/charset for a given page by setting HTTP headers, but this is not what I am looking for.)

Alex


ANSWERS:


There is a default_charset setting in php.ini


If you need to change the character set of non php files you can tell apache what to use. AddDefaultCharset utf-8



 MORE:


 ? How can I set what encoding must be used by a site?
 ? How do you know what encoding the user is inputing into the browser?
 ? Error in encoding mysql -> How can I reconvert it to something else?
 ? Setting PHP default encoding to utf-8?
 ? How to change a string to utf8 encoded?
 ? How can I post data with overlong encoding to test for vulnerabilities?
 ? How to set text file encoding in PHP?
 ? Transferring extended ascii characters with unknown encoding to a Twisted XMLRPC from C#
 ? Transferring extended ascii characters with unknown encoding to a Twisted XMLRPC from C#
 ? Transferring extended ascii characters with unknown encoding to a Twisted XMLRPC from C#