摘要:
原有的函数截取中文字符时会出现乱码问题,修改smarty目录下plugins\modifier.truncate.php文件如下function smarty_modifier_truncate($string, $sublen = 80, $etc = '...', $break_words = false, $middle = false){$start=0;$code="UTF-8"; if($code == 'UTF-8') { $pa = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\ 阅读全文
posted @ 2011-01-26 23:46
→province★
阅读(2023)
评论(0)
推荐(0)
浙公网安备 33010602011771号