In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the solution of garbled code in the introduction of automatic interception of Imperial CMS. The article is very detailed and has a certain reference value. Interested friends must finish reading it!
Imperial CMS automatic interception profile how to solve the problem of garbled code?
The solution of garbled codes in Imperial CMS automatic interception of brief introduction
Many Imperial CMS users encounter garbled code or other unwanted characters when calling profile or intercepting content. Here is the solution to this problem, friends who encounter similar problems can refer to it.
First open the file e/class/connect.php and find the function sub ($string,$start=0,$length,$mode=false,$dot='')
Put the code in it:
The code is as follows:
$string = str_replace (array ('', &',''), array ('','&','',','), $string)
To be replaced by:
The code is as follows:
$string = str_replace (array ('', &','',''), array ('', &','',','), $string)
Analysis: the Imperial default intercept replacement function does not work on double quotes, which is solved by adding here, so if you encounter other similar situations, you can add the characters to be replaced and the characters after replacement here.
Utf-8 coding:
The code is as follows:
$string = str_replace (array ('','&',''), array ('','&','',''). These are all the contents of Imperial CMS's automatic interception of solutions for garbled codes. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.