网址中的多字节字符未在呈现 [英] Multibyte characters in URL are not rendering
问题描述
我有一个bug问题。对于我制作的网站,有搜索引擎友好的URL生成。唯一的问题是在URL中有ß-chars。像ö,ï,ä,ü等字符被放置正确。但是ß-char有一个带有问号的菱形图标。 - >
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. -> �
我认为这与使用的字符集有关,但我已经试过UTF-8和iso-8859-1。两个都没有运气。
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.
我需要在url中有正确的字符以便deeplink的可读性。
I need to have the correct character in the url for the readability of deeplinks.
推荐答案
感谢您的答案,+ 1。我已通过使用 iconv
函数解决了问题,它是默认安装的。
Thanks for your answers, both + 1. I've solved the problem by using the iconv
function, which is installed by default.
这篇关于网址中的多字节字符未在呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!