最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
要源码
当前位置:主页 > 网站建设 > DedeCMS后台无法保存中文字符建站问题

DedeCMS后台无法保存中文字符建站问题

时间:2023-05-26 13:05:26 阅读: 文章分类: 网站建设 作者: 网站技术员

导读:建站问题建站问题一、后台-系统基本参数无法保存中文 在项目目录 dede / templets / sys_info.htm 中搜索: htmlspecialchars ( $网站seo优化软件网站建设公司。

网站seo优化软件网站建设公司一、后台-系统基本参数无法保存中文 在项目目录 dede / templets / sys_info.htm 中搜索: htmlspecialchars ( $row [‘value’]) 替换为: htmlspecialchars ( $row [‘value’],ENT_COMPAT ,’GB2312′) 若其他页面也无法保存中文,则需要整站搜索并批量替 […]

一、后台-系统基本参数无法保存中文

在项目目录 dede / templets / sys_info.htm 中搜索:

 htmlspecialchars($row[‘value’]) 

替换为:

 htmlspecialchars($row[‘value’],ENT_COMPAT ,’GB2312′) 

若其他页面也无法保存中文,则需要整站搜索并批量替换。

二、编辑器中无法保存中文

在项目目录 include / ckeditor / ckeditor_php5.php 中搜索:

 $out = "<textarea name=\"" . $name . "\"" . $attr . ">" .htmlspecialchars($value). "</textarea>\n"; 

替换为:

 $out = "<textarea name=\"" . $name . "\"" . $attr . ">" .htmlspecialchars( $value, ENT_COMPAT, 'GB2312' ). "</textarea>\n"; 

三、标签中无法保存中文

在项目目录 dede / article_add.php&n营销型网站建设bsp;和 dede / article_edit.php 中搜索:

 $title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen)); 

替换为:

 $title = htmlspecialchars(cn_建设网站substrR($title,$cfg_title_maxlen),ENT_COMPAT ,'GB2312'); 

四、核心-批量维护-tag标签管理中无法保存中文

在项目目录 dede/templets/tags_main.htm 中搜索:

 $fields['tag'] = htmlspecialchars($fields['tag']);  

替换为:

 $fields['tag'] = html网站建设哪家好specialchars($fields['tag'],ENT_COMPAT ,'GB2312'); 

 

关键词标签: 中文 后台 CMS

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-26 ,文章DedeCMS后台无法保存中文字符建站问题主要讲述中文,后台,CMS网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_9780.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章