How to solve this problem when magic_quotes_gpc is set to ON
Source: Internet
Author: User
When magic_quotes_gpc is set to ONmagic_quotes_gpc and set to ON, the kindeditor background text editor will be garbled during storage. I don't know if anyone has ever encountered this problem and the server has no permission to set it to off, experts give us some advice ,. set it to off in htaccess. set magic_quotes_gpc & nbsp; = & nbs to ON
When magic_quotes_gpc is set to ON, I use the kindeditor background text editor to save garbled characters. I don't know if anyone has ever encountered this problem, and I have no permission to set it to off ON the server.
------ Solution --------------------
Set it to off in. htaccess.
------ Solution --------------------
Magic_quotes_gpc = on
That is, php automatically executes the addslashes function once for incoming data.
You can execute stripslashes again to remove the escape
However, escaping has nothing to do with garbled characters. you should look for problems from other directions.
------ Solution --------------------
Will this happen locally? Paste your garbled code to see it.
------ Solution --------------------
It is useless to magic reference
You can go to the database to check whether there are garbled characters in the database and find the center.
Then you can determine whether it is a problem of storage or retrieval.
------ Solution --------------------
Maybe the server code is different from the local code ..
------ Solution --------------------
Set_magic_quotes_runtime (0)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service