1

问题是如何在我的 html 中启用我网站中的所有类型的字母,例如我想使用波兰语特殊字母 ś,ą,ć 德语:ä, ö, ü 和其他所有类型

4

1 回答 1

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" />).

于 2013-09-07T11:32:42.733 回答