search
HomeCMS TutorialDiscuzHow to solve discuz3.4 special character garbled characters

How to solve discuz3.4 special character garbled characters

Mar 16, 2021 am 10:29 AM
discuzGarbled characters

下面discuz栏目给大家介绍一下discuz3.4特殊字符乱码的解决方案。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。

How to solve discuz3.4 special character garbled characters

相关推荐:《discuz教程

Discuz!3.4升级后,贴子内容使用Unicode编码会出现直接显示源码问题

打开:source\function\function_core.php

$string = str_replace(array('&', '"', ''), array('&', '"', ''), $string);

下面加入

if(strpos($string, '') !== false) {
                $string = preg_replace('/&((#(\d{3,5}|x[a-fA-F0-9]{4}));)/', '&\\1', $string);
            }

保存文件 覆盖 更新缓存 刷新贴子看看效果

更多编程相关知识,请访问:编程视频!!

The above is the detailed content of How to solve discuz3.4 special character garbled characters. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment