php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31279 mb_list_encodings Big5 not Big-5
Submitted: 2004-12-24 03:29 UTC Modified: 2005-02-21 10:50 UTC
From: rd dot contact at free dot fr Assigned:
Status: Not a bug Package: mbstring related
PHP Version: 5.0.3 OS: win
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rd dot contact at free dot fr
New email:
PHP Version: OS:

 

 [2004-12-24 03:29 UTC] rd dot contact at free dot fr
Description:
------------
mb_list_encodings Returns Big-5, not Big5


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-24 03:44 UTC] rd dot contact at free dot fr
mb_list_encodings Returns Big-5, not Big5
 [2004-12-24 10:59 UTC] derick@php.net
Why is this a bug?
 [2004-12-24 15:42 UTC] rd dot contact at free dot fr
browser http header returns Big5 not Big-5 (tested on Mozilla(s) and Opera)
so you can detect if the browser charset is mb-compatible, with all exept for Big5, using a mb_list_encodings test.
 [2005-02-21 10:50 UTC] moriyoshi@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Encoding names returned by mb_list_encodings() are the 
names internally used in the mbstring extension. To 
convert these to the IANA registered counterparts, use 
mb_preferred_mime_name().

<?php
foreach (mb_list_encodings() as $enc) {
    var_dump(mb_preferred_mime_name($enc));
}
?>


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC