最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - Should or shouldn't I urlencode umlauts in links? - Stack Overflow

programmeradmin2浏览0评论

I want the URL to my German about-me page to be über-mich (German for "about me"):


This works fine if the filename contains an umlaut:

index.php
robots.txt
über-mich.php

What keeps confusing me is how that URL should be represented in anchor and link tags in the code of the webpage. Should I use umlauts or urlencode them?

Is this correct:

<link rel="canonical" href=";>
<a href="/über-mich">Über mich</a>

or this:

<link rel="canonical" href="/%C3%BCber-mich">
<a href="/%C3%BCber-mich">Über mich</a>

Both links work! So which is correct? Or doesn't it matter?

发布评论

评论列表(0)

  1. 暂无评论