Dedecms织梦文章里摘要field description乱码问题

我们经常会碰到织梦的文章摘要中出现乱码文章,其实这个问题就在于字符串的截取上,依照如下几步即可解决问题.
 
1.先进入数据库修改表:dede_archives 字段 description  varchar(600);
 
2.进入织梦后台,找到,系统-->系统基本参数-->  其它选项,自动摘要长度(0-250,0表示不启用):600.
 
3.测试,如果有问题需要分别修改.
 
①修改措施文件:
 
dede
/archives_add.php
/archives_edit.php
/article_add.php
/article_edit.php
查找以下代码:
 
$title= cn_substrR($title,$cfg_title_maxlen);
$shorttitle= cn_substrR($shorttitle,36);//大略标题字符数
$color = cn_substrR($color,7);
$writer= cn_substrR($writer,20);//作者字符数
$source= cn_substrR($source,30);//文章来历字符数
$description= cn_substrR($description,250);//摘要字符数
$keywords= trim(cn_substrR($keywords,30));//要害词字符数
$filename = trim(cn_substrR($filename,40));//文件名字符数
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) //开源软件:Cuoxin.com
找到:$description = cn_substrR($description,250);
 
修改数字为想要显示的摘要字符数.

dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。