#29983 [Asn->Csd]: default_charset not set by ini_set

From: Date: Wed, 19 Oct 2005 20:39:05 +0000
Subject: #29983 [Asn->Csd]: default_charset not set by ini_set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86764@lists.php.net to get a copy of this message
ID: 29983 Updated by: iliaa@php.net Reported By: nlopess@php.net -Status: Assigned +Status: Closed Bug Type: Apache2 related Operating System: * PHP Version: 5CVS-2005-03-07 Assigned To: tony2001 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-06-22 23:29:27] tony2001@php.net Assigned to myself so I don't forget to commit the patch. ------------------------------------------------------------------------ [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

« previous php.bugs (#86764) next »