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;
|
||||
if($dest==false)
|
||||
$dest=$www_charset;
|
||||
if(($iconv_enable) && ($source!=false)) {
|
||||
if($iconv_enable) {
|
||||
$return=iconv($source,
|
||||
$dest."//TRANSLIT",$text);
|
||||
$dest."//TRANSLIT//IGNORE",$text);
|
||||
if($return!="")
|
||||
return $return;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue