一般utf8直接这样引用:

{$abc|mb_substr:0:20}

gbk的如下:

{$abc|mb_substr:0:20:'GBK'}

Related Posts: Smarty中模版引用mb_substr()截取字符串 :