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.
我尝试打印当前 URL,但编码存在小问题。在我的 URL 中可以有 ä 和 ä 之类的字母,但是当我打印 URL 时,它们会显示为 %C3%B6。
知道问题出在哪里吗?PHP 设置、代码或..?:)
尝试urldecode()你的字符串。
urldecode()
如果请求 URI 中有 UTF8 字符中断,请尝试以下操作:
rawurldecode($_SERVER['UNENCODED_URL']);