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 的一部分。示例:example.tld/ search-term 事实:只有现代浏览器会显示解码字符,因为它们必须使用百分比编码用于内部目的。但有些网站,如wikipedia,在其 URL 中使用非拉丁字符。
问题:
我应该怎么办?通过允许以这种方式传递搜索词,我会遇到哪些问题?我应该做一些特别的事情来从我的 php 文件中检索这个术语吗?任何网址编码功能?
谢谢你的时间:D