URL 中的多字节字符不呈现
我有一个窃听问题。对于我制作的网站,会生成搜索引擎友好的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
UTF8 中的字符 U+00DF 适合你吗?
我尝试在 Firefox 上使用它,URL
在 URL 编码中被转换为 ss,U+00DF 应转换为 %DF
does the character U+00DF in UTF8 work with you?
i tried to use it on Firefox and the URL was translated into ss
in URL encoding, the U+00DF should be translated to %DF
感谢您的回答,都是+ 1。我已经通过使用默认安装的
iconv
函数解决了这个问题。Thanks for your answers, both + 1. I've solved the problem by using the
iconv
function, which is installed by default.