Skip to content
Snippets Groups Projects
Commit 14724e89 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #2000 from greezybacon/issue/gb2312


i18n: Translate gb2312 to gbk charset

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 8738ab99 23754feb
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ class Charset {
return 'cp949';
case preg_match('`^iso-?(\S+)$`i', $charset, $match):
return "ISO-".$match[1];
// GBK superceded gb2312 and is backward compatible
case preg_match('`^gb2312`i', $charset):
return 'GBK';
// Incorrect, bogus, ambiguous or empty charsets
// ISO-8859-1 is assumed
case preg_match('`^(default|x-user-defined|iso|us-ascii)$`i', $charset):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment