The solution of garbled codes in Imperial CMS automatic interception of brief introduction
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!