#50167 [NEW]: default_charset not working correctly
From: oliviapurvis at yahoo dot com
Operating system: Centos 5.3
PHP version: 5.3.0
PHP Bug Type: Output Control
Bug description: default_charset not working correctly
Description:
------------
According to the PHP manual:
To disable sending of the charset, simply set default_charset to be
empty.
I set it to empty but the http header always output:
Content-Type: text/html; charset=UTF-8
This inteferes with my html pages which has this html header:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Only occurs with PHP 5.3. Works correctly with 5.2.
By the way, if I set default_charset="iso-8859-1" it produces correctly:
Content-Type: text/html; charset=iso-8859-1
But what I want is to disable charset completely.
Reproduce code:
---------------
<?php
echo 'This is a test!';
exit;
?>
Expected result:
----------------
Transfer-Encoding: chunked
Content-Type: text/html
200 OK
Actual result:
--------------
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
200 OK
--
Edit bug report at http://bugs.php.net/?id=50167&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50167&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50167&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50167&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50167&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50167&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50167&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50167&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50167&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50167&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50167&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50167&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50167&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50167&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50167&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50167&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50167&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50167&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50167&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50167&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50167&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50167&r=mysqlcfg
Thread (4 messages)
- oliviapurvis at yahoo dot com