ID:               45086
 Updated by:       [EMAIL PROTECTED]
 Reported By:      petr dot hroudny at gmail dot com
 Status:           Bogus
 Bug Type:         mbstring related
 Operating System: *
 PHP Version:      5.2.6
 New Comment:

In addition, GB2312 is not the same as CP936, while these two character
sets share most of the characters. (CP936 has larger code space than
GB2312 according to the spec.)




Previous Comments:
------------------------------------------------------------------------

[2008-08-01 23:06:56] [EMAIL PROTECTED]

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

mb_list_encoding() returns the list of the encoding names that are
local to the extension and that are not necessarily the same as the
IANA's. For another example, it returns "SJIS-win" for the encoding that
is referred to by "Windows-31J" as the preferred MIME name in the IANA's
registry.



------------------------------------------------------------------------

[2008-05-24 05:38:11] petr dot hroudny at gmail dot com

Description:
------------
MBstring uses incorrect default names for two chinese charsets:

1) Official IANA name is GB2312, but MBstring uses EUC-CN
2) Official IANA name is GBK, but MBstrings uses CP936

Reproduce code:
---------------
mb_list_encodings()

Expected result:
----------------
mb_list_encodings()  should return official IANA names (GB2312, GBK)

Actual result:
--------------
mb_list_encodings()  returns EUC-CN and CP936


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45086&edit=1

Reply via email to