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

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.

Undress AI Tool

Undress AI Tool

Undress images for free

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 Article

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor