如何在网站中正确显示特殊字符 - html [英] how to display special characters correctly in the website - html

查看:235
本文介绍了如何在网站中正确显示特殊字符 - html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您可以在此处查看我的代码,则可以看到德语中的变音符号或特殊字母无法正确显示。我如何正确显示它们,我必须把东西放在我的代码中?
谢谢



oops jsfiddle无法正常工作...所以我在此贴出:
感谢:
http://www.tintin.ws/files/newsletter006.html

解决方案

您的页面标题说明它使用UTF-8格式,但内容包含: 0001e40:6e64 204c f673 756e 6765 6e20 696e 2053 nd L.sungen in S
0002080:7375 6e67 656e 2c20 6469 6520 6e69 6368 sungen,die nich

f6表示其中一个非ASCII字符 - 内容以Latin1(ISO-8859-1)编码。



使页面报告为Latin1,将内容重新编码为UTF-8。


if you can check in my code here, you can see that the "umlauts" or the special letters in german are not displaying properly. How can i display them properly do i have to put something in my code? Thanks

oops jsfiddle is not working... so i posted it here: thanks: http://www.tintin.ws/files/newsletter006.html

解决方案

Your pages header says that it's in UTF-8, but the contents has:

0001e40: 6e64 204c f673 756e 6765 6e20 696e 2053  nd L.sungen in S
0002080: 7375 6e67 656e 2c20 6469 6520 6e69 6368  sungen, die nich

f6 for one of the non-ASCII characters - the content is encoded in Latin1 (ISO-8859-1).

Either make the page report that it is in Latin1, of re-encode the content into UTF-8.

这篇关于如何在网站中正确显示特殊字符 - html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆