Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好,我正在研究 codeigniter,我遇到了一个问题,当任何人去编辑输入为“XYZ ABC”的名称时,意味着在它们之间提供空间,然后当它打印在要编辑的文本字段上时,我们会在它们之间打印“%20”
听起来用户输入在某个地方得到了 url_encoded,就像%20urlencoded 空白一样。在显示/写入数据库之前尝试对其进行解码:
%20
http://www.php.net/manual/de/function.urldecode.php
尝试:
echo urldecode($str);
阅读更多