如何在地址栏中显示非标准字符?
我有一个窃听问题。对于我制作的网站,会生成搜索引擎友好的 URL。唯一的问题是 url 中也有 ß 字符。 ö、ï、ä、ü 等字符放置正确。但对于 ß-char,有一个带有问号的菱形图标。
我认为这与使用的字符集有关,但我尝试过 UTF-8 和 iso-8859-1。两者都没有运气。
我需要在 url 中包含正确的字符,以确保深层链接的可读性。
I have a bugging problem. For a website I made there are search engine friendly URL's generated. The only problem is there are ß-chars in the url too. Chars like ö, ï, ä, ü etc. are placed correct. But with the ß-char there is a diamond-icon with a questionmark in it.
I thought it had to do with the charset which is used but i've tried both UTF-8 and iso-8859-1. Both without luck.
I need to have the correct character in the url for the readability of deeplinks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了 iconv 函数的问题。
Solved the problem with
iconv
function.