#29983 [Opn->Ver]: default_charset not set by ini_set
| From: | sniper@php.net | Date: | Mon, 07 Mar 2005 20:24:58 +0000 |
| Subject: | #29983 [Opn->Ver]: default_charset not set by ini_set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76842@lists.php.net to get a copy of this message | ||
ID: 29983
Updated by: sniper@php.net
Reported By: nlopess@php.net
-Status: Open
+Status: Verified
Bug Type: Apache2 related
-Operating System: all
+Operating System: *
-PHP Version: 5CVS-2004-09-05 (dev)
+PHP Version: 5CVS-2005-03-07
Previous Comments:
------------------------------------------------------------------------
[2004-09-06 05:01:23] rasmus@php.net
Verified. Doesn't look Apache2-specific to me. It has to do with the
way we apply it, or rather don't apply it if we already see one set.
------------------------------------------------------------------------
[2004-09-05 15:11:27] smacvicar at gmail dot com
It doesn't appear to send a charset entry when specified and you end up
with the AddDefaultCharset entry from Apache 2 which is ISO-8859-1.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23421
------------------------------------------------------------------------
[2004-09-05 12:37:28] nlopess@php.net
Description:
------------
default_charset is marked as PHP_INI_ALL but I can't set it using
ini_set. If I set it throught .htaccess it works fine.
Reproduce code:
---------------
<?
ini_set('default_charset', 'UTF-8');
?>
Expected result:
----------------
HTTP/1.1 200 OK
(...)
Content-Type: text/html; charset=UTF-8
Actual result:
--------------
HTTP/1.1 200 OK
(...)
Content-Type: text/html; charset=ISO-8859-1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29983&edit=1