本文介绍了为什么我的网站上的撇号和连字符等符号被黑色钻石取代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的网站有几个问题...在其中一个网页上,有一个撇号(')或破折号(<$ c $

A website I've made has a few problems... On one of the pages, wherever there's an apostrophe (') or a dash (-), the symbol gets replaced with a weird black diamond with a question mark in the center of it

这里是我的意思

这是发生在所有的网站,这些符号出现的地方。我从来没有见过这个,是否有人可以向我解释?

It seems this is happening all over the site wherever these symbols appear. I've never seen this before, can anyone explain it to me?

如何解决这个问题的建议也会非常感谢。

Suggestions on how to fix it would also be greatly appreciated.

请参阅 http://test.rfinvestments.co。

See http://test.rfinvestments.co.za/index.php?c=team for a clear look at the problem.

推荐答案

这是一个编码问题。您必须通过元标记在HTML头中设置正确的编码:

It's an encoding problem. You have to set the correct encoding in the HTML head via meta tag:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

使用您的编码替换ISO-8859-1(例如'UTF-8') 。您必须找出HTML文件的编码。如果你在Unix系统上,只需键入 file file.html ,它就会显示编码。如果这是不可能的,你应该能够找出你的编辑器生成什么编码。

Replace "ISO-8859-1" with whatever your encoding is (e.g. 'UTF-8'). You must find out what encoding your HTML files are. If you're on an Unix system, just type file file.html and it should show you the encoding. If this is not possible, you should be able to find out somewhere what encoding your editor produces.

这篇关于为什么我的网站上的撇号和连字符等符号被黑色钻石取代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!