前面一篇文章提到的是PHP截取中文时出现乱码的解决办法。这篇文章从模板引擎Smarty的角度去解决截取中文乱码的问题。 smarty的字符串截取函数是针对拉丁字符设计的,对于像汉字这样的非单字节文字在截取时就会出现乱码问题,下面是我从网上找来的一
书名:《Smarty PHP Template Programming and Applications》 图书简介: step-by-step guide to building PHP web sites and applications using the Smarty templating engine Bring the benefits of Smarty to your PHP programming Give your designers the power to modify content and layout without PHP programming Produce