[ Branka @ 13.11.2005. 07:36 ] @
Trebam pomoc, u php skripti imam niže navedeno, ispisuje vjesti i kako dole piše UTF-8 ne radi, kako da za određena slova (š, ž) kažem da zamjeni sa s i z? ą - to mu izbacuje za š ľ - izbacuje za ž //----------------------------------------- gets the chars replacers ------------------------------------------------------------ global $repl_list; $repl_list = "&(apos|#39);,'-â,â-ĂÂą,u-¬Â¦,..-Ă©,é-è,č-Ă»,ů-ŕŞ,ę-ŕ®,i-ŕ§,ç-Ă,ŕ-’,'-°,°"; if ($params->get( 'repl_list' )!=""){ $repl_list = $repl_list."-".$params->get( 'repl_list' ); } //----------------------------------- define a function to ameliorate visualisation inspired from a fonction by francesco Orlando ------------- if (!defined( '_NFSXT_MODULE' )) { /** ensure that functions are declared only once */ define( '_NFSXT_MODULE', 1 ); global $charset; $charset = $params->get( 'charset' ); function remove_aposXT($text) { global $charset,$repl_list; $text= html_entity_decode($text,ENT_QUOTES,$charset); #NOTE: UTF-8 does not work! |