From b53c6891aa2a5a8e027f2573f384b548ec603177 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 2 Jan 2023 21:56:37 +0000 Subject: [PATCH] Avoid iconv deleting entire line for unknow char. Just delete character instead. --- Rocksolid_Light/rocksolid/newsportal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 5a625d5..7f42e30 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -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