how to display special characters correctly in the website - html

允我心安 提交于 2019-12-25 01:54:22

问题


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


回答1:


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.




回答2:


use this for character entity reference:

http://www.digitalmediaminute.com/reference/entity/




回答3:


Try this Character Reference:

http://www.utexas.edu/learn/html/spchar.html


来源:https://stackoverflow.com/questions/3627188/how-to-display-special-characters-correctly-in-the-website-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!