mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
little fix for gb2312
This commit is contained in:
parent
57066401f5
commit
b3dfa3d386
@ -245,6 +245,13 @@
|
|||||||
if ($from == 'ascii') $from = 'iso-8859-1';
|
if ($from == 'ascii') $from = 'iso-8859-1';
|
||||||
//echo "<p>autodetected charset of '$data' = '$from'</p>\n";
|
//echo "<p>autodetected charset of '$data' = '$from'</p>\n";
|
||||||
}
|
}
|
||||||
|
/* php does not seem to support gb2312
|
||||||
|
but seems to be able to decode it as another charset
|
||||||
|
*/
|
||||||
|
if(strtolower($from) == 'gb2312')
|
||||||
|
{
|
||||||
|
$from = mb_detect_encoding($data);
|
||||||
|
}
|
||||||
if (!$to)
|
if (!$to)
|
||||||
{
|
{
|
||||||
$to = $this->charset();
|
$to = $this->charset();
|
||||||
|
Loading…
Reference in New Issue
Block a user