{volist name="name" id="vo"}
<tr>
<th>{$vo.id}</th>
<td>{$vo.name|mb_substr=0,1,'utf-8'}</td>
<td>{$vo.age}</td>
<td>{$vo.sex}</td>
</tr>
{/volist}
下面是没有加上utf8 时截取数据库中name字段0-1范围内会乱码
{volist name="name" id="vo"}
<tr>
<th>{$vo.id}</th>
<td>{$vo.name|substr=0,1}</td>
<td>{$vo.age}</td>
<td>{$vo.sex}</td>
</tr>
{/volist}