Multibyte characters in URL are not rendering

不想你离开。 提交于 2020-01-07 06:44:13

问题


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.


回答1:


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




回答2:


Thanks for your answers, both + 1. I've solved the problem by using the iconv function, which is installed by default.



来源:https://stackoverflow.com/questions/2887733/multibyte-characters-in-url-are-not-rendering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!