#31279 [Opn->Bgs]: mb_list_encodings Big5 not Big-5

From: Date: Mon, 21 Feb 2005 09:50:08 +0000
Subject: #31279 [Opn->Bgs]: mb_list_encodings Big5 not Big-5
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76890@lists.php.net to get a copy of this message
ID: 31279 Updated by: moriyoshi@php.net Reported By: rd dot contact at free dot fr -Status: Open +Status: Bogus Bug Type: mbstring related Operating System: win PHP Version: 5.0.3 New Comment: 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)); } ?> Previous Comments: ------------------------------------------------------------------------ [2004-12-24 15:42:36] 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. ------------------------------------------------------------------------ [2004-12-24 10:59:57] derick@php.net Why is this a bug? ------------------------------------------------------------------------ [2004-12-24 03:44:05] rd dot contact at free dot fr mb_list_encodings Returns Big-5, not Big5 ------------------------------------------------------------------------ [2004-12-24 03:29:37] rd dot contact at free dot fr Description: ------------ mb_list_encodings Returns Big-5, not Big5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31279&edit=1

« previous php.bugs (#76890) next »