mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
* API: support windows-1256 via iconv and prefer iconv for windows-1252 too
This commit is contained in:
parent
6fcc4455e4
commit
dc17cfbb47
@ -548,11 +548,17 @@ class translation
|
||||
case 'gb18030':
|
||||
$from = 'EUC-CN';
|
||||
break;
|
||||
case 'windows-1252':
|
||||
if (function_exists('iconv'))
|
||||
{
|
||||
$prefer_iconv = true;
|
||||
break;
|
||||
}
|
||||
// fall throught to remap to iso-8859-1
|
||||
case 'us-ascii':
|
||||
case 'macroman':
|
||||
case 'iso8859-1':
|
||||
case 'windows-1258':
|
||||
case 'windows-1252':
|
||||
$from = 'iso-8859-1';
|
||||
break;
|
||||
case 'windows-1250':
|
||||
@ -563,6 +569,7 @@ class translation
|
||||
break;
|
||||
case 'windows-874':
|
||||
case 'tis-620':
|
||||
case 'windows-1256':
|
||||
$prefer_iconv = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user