Support » Plugin: Wizzart - Recent Comments » [Plugin: Wizzart – Recent Comments] too small support UTF-8 and cyrilic

  • Hi!
    do not use “substr” in PHP. otherwise, the Russian language can cut incorrectly and in the end gets a “question mark”, like this:

    в режиме онла�…

    this: �����

Viewing 1 replies (of 1 total)
  • may be this exampes can help you to understand:

    function maxsite_str_word($text, $counttext = 10, $sep = ' ') {
    	$words = split($sep, $text);
    	if ( count($words) > $counttext )
    		$text = join($sep, array_slice($words, 0, $counttext));
    	return $text;
    }

    [Please post code snippets between backticks or use the code button.]

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Wizzart – Recent Comments] too small support UTF-8 and cyrilic’ is closed to new replies.