alecpl
2010-03-17 895d4e385cf06090ec120166da6bcdd0622ba60e
- Use iconv's //IGNORE instead of //TRANSLIT


1 files modified
4 ■■■■ changed files
program/include/main.inc 4 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -209,8 +209,8 @@
  // convert charset using iconv module  
  if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
    if ($iconv_options === null) {
      // transliterate characters not available in output charset
      $iconv_options = '//TRANSLIT';
      // ignore characters not available in output charset
      $iconv_options = '//IGNORE';
      if (iconv('', $iconv_options, '') === false) {
        // iconv implementation does not support options
        $iconv_options = '';