我正在使用 html 和 css 开发一个网站,但我看不到希腊字母。相反,我只看到符号。我的 html 文件中有以下行:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
我也试过:
<meta http-equiv="content-type" content="text/html;charset=windows-1253" />
<meta http-equiv="content-type" content="text/html;charset=ibm869" />
<meta http-equiv="content-type" content="text/html;charset=ibm737" />
<meta http-equiv="content-type" content="text/html;charset=iso-8859-7"/>
<meta http-equiv="content-type" content="text/html;charset=x-mac-greek"/>
<meta http-equiv="content-type" content="text/html;charset=x-EBCDIC-GreekModern "/>
<meta http-equiv="content-type" content="text/html;charset=x-EBCDIC-Greek "/>
什么都没用! ps 我在 Firefox 和 Internet Explorer 中试过这个
原文由 Dchris 发布,翻译遵循 CC BY-SA 4.0 许可协议
根据您的评论
在记事本中打开文件,从顶部菜单中选择文件 -> 另存为,然后在另存为对话框中有一个下拉菜单,您可以在其中选择字符编码。确保选择 UTF-8 而不是 ANSI
一旦文件被保存为 UTF-8 那么你应该没有问题添加希腊字母,(或俄语,希伯来语,日语或其他)