"some alternative charsets for the import, a hardcoded list for now, as all languages use utf-8"

This commit is contained in:
Ralf Becker 2007-11-30 16:45:54 +00:00
parent f0293b3c9d
commit 3e29477fe9

View File

@ -376,6 +376,18 @@
$data .= ($data ? ', ' : $charset.': ').$lang;
}
}
// add the old charsets, to provide some alternatives to utf-8 while importing
foreach(array(
'iso-8859-1' => 'Western european',
'iso-8859-2' => 'Eastern european',
'iso-8859-7' => 'Greek',
'euc-jp' => 'Japanese',
'euc-kr' => 'Korean',
'koi8-r' => 'Russian',
'windows-1251' => 'Bulgarian') as $charset => $lang)
{
$this->charsets[$charset] .= (!isset($this->charsets[$charset]) ? $charset.': ' : ', ') . $lang;
}
}
return $this->charsets;
}