本文介绍了为什么在我的HTML中出现带有问号的钻石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个unorder列表,并且经常(但并非总是!)出现在字符之间有两个空格的地方。这是什么原因造成的,我该如何预防它? 解决方案

这个特定的字符通常是无效的符号-UTF-8)字符显示在已被声明为UTF-8的输出中(如页面)。它经常发生在数据库连接不是UTF-8编码的情况下(即使这些表是)




  • / li>

  • HTML或脚本源文件存储在错误的编码中(例如Windows-1252而不是UTF-8) - 请确保它保存为UTF-8文件。该设置通常位于另存为...对话框中。


  • 在线来源(如小部件或RSS源) t服务UTF-8



I have an unorder list, and � often (but not always!) appears where I have have two spaces between characters. What is causing this, and how do I prevent it?

解决方案

This specific character � is usually the sign of an invalid (non-UTF-8) character showing up in an output (like a page) that has been declared to be UTF-8. It happens often when

  • a database connection is not UTF-8 encoded (even if the tables are)

  • a HTML or script source file is stored in the wrong encoding (e.g. Windows-1252 instead of UTF-8) - make sure it's saved as a UTF-8 file. The setting is often in the "Save as..." dialog.

  • an online source (like a widget or a RSS feed) is fetched that isn't serving UTF-8

这篇关于为什么在我的HTML中出现带有问号的钻石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:10