问题是如何在我的 html 中启用我网站中的所有类型的字母,例如我想使用波兰语特殊字母 ś,ą,ć 德语:ä, ö, ü 和其他所有类型
1 回答
Several approaches:
First of all, the classic and most compatible approach: Use HTML entities. This a a special character sequence starting with
&and ending with a;. The most common characters are named, for example theü("u umlaut") can be respresented usingüin your HTML source. For the uppercase character you'd useÜ. For unnamed characters, you can use#to denote Unicode characters, likeÂ(decimal) andÂboth representingÂ.As an alternative, just save your HTML using UTF-8 and set the proper encoding in the HTML header. All modern browsers should display these just fine (e.g.
<meta http-equiv="content-type" content="text/html; charset=utf-8" />or the shorter variant<meta charset="utf-8" />).