php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49414 mb_detect_encoding(): Include notice that $encoding_list is (almost) mandatory
Submitted: 2009-08-30 10:37 UTC Modified: 2009-11-13 22:31 UTC
From: thomas at landauer dot at Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2009-08-30 10:37 UTC] thomas at landauer dot at
Description:
------------
Include a notice that if no $encoding_list parameter is given, the function defaults to ASCII vs. UTF-8 detection only!

Reason: This behavior makes the default-state of the function quite useless - in my view. I guess, most people use it for ISO-8859-1 vs. UTF-8 detection. And I would have expected that the detection defaults to today's most common used charsets on the web!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-30 19:31 UTC] jani@php.net
There is no such OS called "All".
 [2009-11-13 22:32 UTC] vrana@php.net
Default value already documented as mb_detect_order().
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 13:00:01 2026 UTC