庆云php

庆云php

xunruicms遇到SEO生成meta_title时乱码的问题

PHP 0
xunruicms遇到SEO生成meta_title时乱码的问题 这个问题会表现在页面标题头 乱码。 同时,在使用api调用接口时,直接无法转为json.输出报错。 处理方法,直接修改 \XunRuiCMS\dayrui\Fcms\Library\Seo.php 文件第321行,如下 <pre>$seo[$key] = str_replace('"', '', $seo[$key]); $seo[$key] = str_replace([',,'], ',', $seo[$key]); if(mb_substr($seo[$key],0,mb_strlen(SITE_SEOJOIN)==SITE_SEOJOIN)){ $seo[$key] = trim($seo[$key], SITE_SEOJOIN); } $seo[$key] = trim($seo[$key], ',');</pre> <div class="art-copyright br mb"> <div><strong class="addr">本文地址:</strong> <a href="/php/623.html" title="xunruicms遇到SEO生成meta_title时乱码的问题" target="_blank">https://php.xxs100.com//php/623.html</a> </div> <div><span class="copyright">版权声明:</span>除非特别标注原创,其它均来自互联网,转载时请以链接形式注明文章出处。</div> </div> <div class="col-md-12"> <div class="blog-single-foot fc-news-tag-list"> <ul class="blog-post-tags"> <!--关键词搜索--> </ul> </div> </div> <div class="shares social-widget mt clearfix" data-initialized="true"> <strong>分享到:</strong> <span class="share-popover"><span class="share-popover-inner" id="weixin-qrcode"><canvas width="80" height="80"></canvas></span></span> <a class="share-weixin icon-wechat" title="分享到微信"><i class="fa fa-weixin"></i></a> <a class="share-tsina icon-weibo" title="分享到微博"><i class="fa fa-weibo"></i></a> <a class="share-sqq icon-qq" title="分享到QQ好友"><i class="fa fa-qq"></i></a> <a class="share-qzone icon-qzone" title="分享到QQ空间"><i class="fa fa-star"></i></a> <a class="share-twitter icon-twitter" title="分享到Twitter"><i class="fa fa-twitter"></i></a> <a class="share-facebook icon-facebook" title="分享到Facebook"><i class="fa fa-facebook"></i></a> <a class="share-linkedin icon-linkedin" title="分享到领英职场"><i class="fa fa-linkedin"></i></a> </div> </div> </article> <div class="prev-next sb br mb clearfix"> <p class="post-prev fl ellipsis"> <span class="prev">上一篇</span><strong><a href="https://php.xxs100.com/php/621.html">SQLSTATE[42S22]:找不到列:1054“字段列表”中的未知列</a></strong> </p> <p class="post-next fr ellipsis"> <span class="next">下一篇</span><strong><a href="https://php.xxs100.com/php/625.html">php json_encode 返回false怎么办,其实就是因为你的数组中有不是UTF-8的字符</a></strong> </p> </div> <div class="related-art sb br mb"> <p class="c-title"><span class="name">推荐</span></p> <ul class="ul clearfix"> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/177.html" title="PHP去除HTML标签/代码及繁体转简体"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="PHP去除HTML标签/代码及繁体转简体"></span> <p class="titile">PHP去除HTML标签/代码及繁体转简体</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/cxy/582.html" title="9个ai写文方案,经常写文案或视频脚本的自由创作者,SEO从业人员必看"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="9个ai写文方案,经常写文案或视频脚本的自由创作者,SEO从业人员必看"></span> <p class="titile">9个ai写文方案,经常写文案或视频脚本的自由创作者,SEO从业人员必看</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/46.html" title="0基础自学PHP,首先从官网开始"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="0基础自学PHP,首先从官网开始"></span> <p class="titile">0基础自学PHP,首先从官网开始</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/750.html" title="postman学习的开始:日志调试"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="postman学习的开始:日志调试"></span> <p class="titile">postman学习的开始:日志调试</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/646.html" title="chatgpt是什么意思,chatgpt怎么下载,chatgpt官网,chatgpt国内能用吗"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="chatgpt是什么意思,chatgpt怎么下载,chatgpt官网,chatgpt国内能用吗"></span> <p class="titile">chatgpt是什么意思,chatgpt怎么下载,chatgpt官网,chatgpt国内能用吗</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/8.html" title="SQL是程序员的必须之路,而PHP的最佳数据伙伴就是MYSQL!"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="SQL是程序员的必须之路,而PHP的最佳数据伙伴就是MYSQL!"></span> <p class="titile">SQL是程序员的必须之路,而PHP的最佳数据伙伴就是MYSQL!</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/745.html" title="postman学习的开始:批量执行接口请求"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="postman学习的开始:批量执行接口请求"></span> <p class="titile">postman学习的开始:批量执行接口请求</p> </a> </li> <li class="related-item mt fl"> <a href="https://php.xxs100.com/php/745.html" title="postman学习的开始:批量执行接口请求"> <span class="span"><img class="img br img-cover" src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="postman学习的开始:批量执行接口请求"></span> <p class="titile">postman学习的开始:批量执行接口请求</p> </a> </li> </ul> </div> </div> <aside id="sidebar" class="hidden-sm-md-lg fr"> <div class="theiaStickySidebar"> <section id="new_articles" class="widget widget_new_articles sb br mb"> <p class="c-title mb"><span class="name">最新文章</span></p> <ul class="widget-content new_articles"> <li class="list clearfix"><a href="https://php.xxs100.com/php/843.html" title="宝塔如何关闭wwwlog日志.删除access_log"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="宝塔如何关闭wwwlog日志.删除access_log" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">宝塔如何关闭wwwlog日志.删除a...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2024-12-17</span> <span class="view"><i class="bi bi-eye"></i>1</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/842.html" title="ThinkPHP 6 部分表不用数据库前缀,join关联查询不使用默认的表前缀"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="ThinkPHP 6 部分表不用数据库前缀,join关联查询不使用默认的表前缀" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">ThinkPHP 6 部分表不用数据...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2024-12-14</span> <span class="view"><i class="bi bi-eye"></i>3</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/cxy/841.html" title="WinSW可以将应用打包成Windows服务的方式运行。"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="WinSW可以将应用打包成Windows服务的方式运行。" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">WinSW可以将应用打包成Windo...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2024-05-08</span> <span class="view"><i class="bi bi-eye"></i>5</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/840.html" title="讯睿搜索模块改为永远都按ID排序的方法"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="讯睿搜索模块改为永远都按ID排序的方法" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">讯睿搜索模块改为永远都按ID排序的方...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2024-03-28</span> <span class="view"><i class="bi bi-eye"></i>1</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/839.html" title="bat 替换字符,bat 截取字符串,批量删除文件名前缀 bat,批量改文件文,获取文件名"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="bat 替换字符,bat 截取字符串,批量删除文件名前缀 bat,批量改文件文,获取文件名" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">bat 替换字符,bat 截取字符串...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-09-26</span> <span class="view"><i class="bi bi-eye"></i>7</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/836.html" title="MySQL遇死时,kill结束TRX_MYSQL_THREAD_ID:MySQL线程ID,完成解锁"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="MySQL遇死时,kill结束TRX_MYSQL_THREAD_ID:MySQL线程ID,完成解锁" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">MySQL遇死时,kill结束TRX...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-09-07</span> <span class="view"><i class="bi bi-eye"></i>2</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/sh/828.html" title="宝塔面版,安装进程守护管理器"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="宝塔面版,安装进程守护管理器" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">宝塔面版,安装进程守护管理器</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-08-06</span> <span class="view"><i class="bi bi-eye"></i>5</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/sh/826.html" title="frp通过https自定义域名访问内网的 Web 服务安装全过程"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="frp通过https自定义域名访问内网的 Web 服务安装全过程" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">frp通过https自定义域名访问内...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-08-06</span> <span class="view"><i class="bi bi-eye"></i>7</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/824.html" title="frp通过自定义域名访问内网的 Web 服务安装全过程"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="frp通过自定义域名访问内网的 Web 服务安装全过程" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">frp通过自定义域名访问内网的 We...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-08-03</span> <span class="view"><i class="bi bi-eye"></i>23</span> </div> </div> </a> </li> <li class="list clearfix"><a href="https://php.xxs100.com/php/820.html" title="wordpress转讯睿数据库,以下方法适用于简单的转移"><span class="img-wrap"><img src="https://php.xxs100.com/static/assets/images/nopic.gif" alt="wordpress转讯睿数据库,以下方法适用于简单的转移" class="img-cover br random-img"></span> <div class="new-text"> <p class="title">wordpress转讯睿数据库,以下...</p> <div class="info"> <span class="time"><i class="bi bi-clock"></i>2023-07-21</span> <span class="view"><i class="bi bi-eye"></i>3</span> </div> </div> </a> </li> </ul> </section> <section id="aside_hot" class="widget widget_aside_hot sb br mb"> <p class="c-title mb"><span class="name">热门文章</span></p> <ul class="widget-content aside_hot"> <li class="clearfix"><span class="list list-1">1</span><a href="https://php.xxs100.com/cxy/115.html" title="接龙互阅读分屏计数神器,一个手机也可操作">接龙互阅读分屏计数神器,一个手机也可...</a></li> <li class="clearfix"><span class="list list-2">2</span><a href="https://php.xxs100.com/php/525.html" title="PHPStorm软件激活码(2022最新中文版)">PHPStorm软件激活码(2022...</a></li> <li class="clearfix"><span class="list list-3">3</span><a href="https://php.xxs100.com/cxy/377.html" title="接龙互阅读分屏计数神器,公众号搜索方式版本介绍及使用">接龙互阅读分屏计数神器,公众号搜索方...</a></li> <li class="clearfix"><span class="list list-4">4</span><a href="https://php.xxs100.com/cxy/582.html" title="9个ai写文方案,经常写文案或视频脚本的自由创作者,SEO从业人员必看">9个ai写文方案,经常写文案或视频脚...</a></li> <li class="clearfix"><span class="list list-5">5</span><a href="https://php.xxs100.com/php/493.html" title="MySQL中VARCHAR 的总长度超了怎么办,报Row size too large是怎么回事">MySQL中VARCHAR 的总长度...</a></li> <li class="clearfix"><span class="list list-6">6</span><a href="https://php.xxs100.com/php/589.html" title="transformers==4.6.0 的安装安装时估计版本不对。重装python==3.6">transformers==4.6....</a></li> <li class="clearfix"><span class="list list-7">7</span><a href="https://php.xxs100.com/php/824.html" title="frp通过自定义域名访问内网的 Web 服务安装全过程">frp通过自定义域名访问内网的 We...</a></li> <li class="clearfix"><span class="list list-8">8</span><a href="https://php.xxs100.com/sh/96.html" title="discuzQ提示上传图片成功,显示路径但提示文件不存在的解决方法">discuzQ提示上传图片成功,显示...</a></li> <li class="clearfix"><span class="list list-9">9</span><a href="https://php.xxs100.com/php/789.html" title="ChatGPT Web 完整的使用说明。">ChatGPT Web 完整的使用说...</a></li> <li class="clearfix"><span class="list list-10">10</span><a href="https://php.xxs100.com/php/595.html" title="pip install transformers==4.6.0 完美安装">pip install transf...</a></li> </ul> </section> </div> </aside></div> <footer class="footer"> <div class="main container"> <div class="f-about fl"> <p class="title pb1">关于本站</p> <div class="intro"> </div> <small> <span>Copyright © 2023 欢迎来到我的小站</span> <span class="icp">备案号:<a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn/"></a></span> <span> </span> </small> </div> <div class="f-contact fl"> <p class="title pb1">联系我们</p> <div> <p>合作或咨询可通过如下方式:</p> <p><i class="fa fa-qq"></i>QQ:</p> <p><i class="fa fa-envelope"></i>邮箱:</p> </div> </div> <div class="f-qr fr"> <p class="title pb1">关注我们</p> <div><img class="img br" alt="庆云php" src="https://php.xxs100.com/static/assets/images/nopic.gif" /></div> </div> <div class="clear"></div> </div> <div id="toolbar" class="toolbar "> <div id="totop" class="hidden br"> <i class="bi bi-arrow-up-circle-fill"></i> </div> </div> </footer> <div id="mask-hidden" class="mask-hidden transition"></div> <script src="https://php.xxs100.com/static/x2h-004/js/common.js" type="text/javascript"></script> <script src="https://php.xxs100.com/static/x2h-004/js/dark-mode.js"></script> <script src="https://php.xxs100.com/static/x2h-004/js/jquery.cookie.min.js"></script> </body> </html>