How do I change the default character set for PHP?


In an .htaccess file placed in the directory you want to have the character set changed on, include this line:

php_value default_charset ?

Replace the "?" with the character set required for your site, such as ISO-8859-1.

Note: Cloud Sites has a default character set of UTF-8 if otherwise not specified in .htaccess.



Was this content helpful?




© 2014 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER