Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/MbWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MbWrapper
public static $mbAliases = [
// supported but not included in mb_list_encodings for some reason...
'CP850' => 'CP850',
'GB2312' => 'GB2312',
'GB2312' => 'GB18030',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change provides a supported encoding, so can move down in the list.

'SJIS2004' => 'SJIS-2004',
// aliases
'ANSIX341968' => 'ASCII',
Expand All @@ -44,7 +44,7 @@ class MbWrapper
'ASMO708' => 'ISO-8859-6',
'BIG5' => 'BIG-5',
'BIG5TW' => 'BIG-5',
'CHINESE' => 'GB2312',
'CHINESE' => 'GB18030',
'CP367' => 'ASCII',
'CP819' => 'ISO-8859-1',
'CP1251' => 'WINDOWS-1251',
Expand All @@ -56,7 +56,7 @@ class MbWrapper
'CSIBM866' => 'CP866',
'CSISO2022JP' => 'ISO-2022-JP',
'CSISO2022KR' => 'ISO-2022-KR',
'CSISO58GB231280' => 'GB2312',
'CSISO58GB231280' => 'GB18030',
'CSISOLATIN1' => 'ISO-8859-1',
'CSISOLATIN2' => 'ISO-8859-2',
'CSISOLATIN3' => 'ISO-8859-3',
Expand All @@ -74,11 +74,11 @@ class MbWrapper
'ECMA114' => 'ISO-8859-6',
'ECMA118' => 'ISO-8859-7',
'ELOT928' => 'ISO-8859-7',
'EUCCN' => 'GB2312',
'EUCGB2312CN' => 'GB2312',
'EUCCN' => 'GB18030',
'EUCGB2312CN' => 'GB18030',
'GB180302000' => 'GB18030',
'GB23121980' => 'GB2312',
'GB231280' => 'GB2312',
'GB23121980' => 'GB18030',
'GB231280' => 'GB18030',
'GBK' => 'CP936',
'GREEK8' => 'ISO-8859-7',
'GREEK' => 'ISO-8859-7',
Expand Down Expand Up @@ -119,7 +119,7 @@ class MbWrapper
'ISOIR157' => 'ISO-8859-10',
'ISOIR199' => 'ISO-8859-14',
'ISOIR226' => 'ISO-8859-16',
'ISOIR58' => 'GB2312',
'ISOIR58' => 'GB18030',
'ISOIR6' => 'ASCII',
'KOI8R' => 'KOI8-R',
'KOREAN' => 'EUC-KR',
Expand Down Expand Up @@ -160,7 +160,7 @@ class MbWrapper
'0' => 'WINDOWS-1252',
'128' => 'SJIS',
'129' => 'EUC-KR',
'134' => 'GB2312',
'134' => 'GB18030',
'136' => 'BIG-5',
'161' => 'WINDOWS-1253',
'162' => 'WINDOWS-1254',
Expand Down