- Use iconv's //IGNORE instead of //TRANSLIT

release-0.6
alecpl 15 years ago
parent 3e34297b79
commit 895d4e385c

@ -209,8 +209,8 @@ function rcube_charset_convert($str, $from, $to=NULL)
// convert charset using iconv module // convert charset using iconv module
if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') { if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
if ($iconv_options === null) { if ($iconv_options === null) {
// transliterate characters not available in output charset // ignore characters not available in output charset
$iconv_options = '//TRANSLIT'; $iconv_options = '//IGNORE';
if (iconv('', $iconv_options, '') === false) { if (iconv('', $iconv_options, '') === false) {
// iconv implementation does not support options // iconv implementation does not support options
$iconv_options = ''; $iconv_options = '';

Loading…
Cancel
Save