|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3799 default_charset brings small incompatibility
Submitted: 2000-03-10 12:38 UTC Modified: 2015-05-12 14:26 UTC
Avg. Score:2.0 ± 1.0
Reproduced:0 of 2 (0.0%)
From: k at les dot cz Assigned: cmb (profile)
Status: Wont fix Package: *General Issues
PHP Version: 4.0 Latest CVS (10/03/2000) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2000-03-10 12:38 UTC] k at les dot cz
could be possible to set default_charset to "none"
by default due to compatibility with older versions?




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-31 22:47 UTC]
You?re free to configure this at your will in php.ini.
 [2000-08-01 13:41 UTC] k at les dot cz
yes, i know. that's why i call it "feature request", not bugreport. i think if default value were "none", it should help php users from non-isolatin1 countries a lot..
 [2000-08-01 13:45 UTC] k at les dot cz
oops.. i was talking about NEW php users of course...
the problem is in modules for charset conversion, they are getting confused by iso-latin1 header, and it's hard for newbies to solve it... at least it was hard for experienced users when this new feature appeared :)
 [2000-08-01 14:06 UTC]
Where is the problem for a newbie to have a look on the
php.ini file, or am I missing sth?
 [2000-08-01 17:28 UTC] k at les dot cz
the problem is that if you're installing a new software you don't suppose it's preconfigured for a special charset.
of course, even if you're a newbie, you'll get it after some investigation :)

the point of this request is - if default_charset were set to "none" by default, if would work for everyone by default. if it's set to anything else, it works "only" for iso-latin1 users.
 [2000-08-01 17:34 UTC]
If that?s true, it?ll really make sense....
 [2000-08-02 12:15 UTC]
I can almost promise this is never going to happen.
The default_charset was created to make the 
"default install" of php [more] secure against the
"cross site scripting" bug.

For more info, please see the CERT Advisory:
 [2013-09-29 17:48 UTC] cmbecker69 at gmx dot de
According to the manual[1] default_charset already defaults to '', 
what has the desired effect.  A test conformed that even for the 
windows binary of PHP-4.3.11.

It seems to me, the request should be finally closed.

[1] <>
 [2014-03-07 12:20 UTC] narf at devilix dot net
And now PHP 5.6 switches the default to 'UTF-8' - it was about time to encourage usage of that charset. Either way this should be closed.
 [2015-05-12 14:26 UTC]
-Status: Suspended +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2015-05-12 14:26 UTC]
Indeed, Andrey. Furthermore the docs[1] rightly state:

| Setting default_charset to an empty value is not recommended.

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 05:03:33 2021 UTC