Avoid iconv deleting entire line for unknow char. Just delete character instead.
This commit is contained in:
parent
f5886cd466
commit
b53c6891aa
|
@ -903,9 +903,9 @@ function recode_charset($text,$source=false,$dest=false) {
|
||||||
global $iconv_enable,$www_charset;
|
global $iconv_enable,$www_charset;
|
||||||
if($dest==false)
|
if($dest==false)
|
||||||
$dest=$www_charset;
|
$dest=$www_charset;
|
||||||
if(($iconv_enable) && ($source!=false)) {
|
if($iconv_enable) {
|
||||||
$return=iconv($source,
|
$return=iconv($source,
|
||||||
$dest."//TRANSLIT",$text);
|
$dest."//TRANSLIT//IGNORE",$text);
|
||||||
if($return!="")
|
if($return!="")
|
||||||
return $return;
|
return $return;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue