为什么像撇号和连字符这样的符号在我的网站上被替换为黑色菱形? [英] Why do symbols like apostrophes and hyphens get replaced with black diamonds on my website?

查看:26
本文介绍了为什么像撇号和连字符这样的符号在我的网站上被替换为黑色菱形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的网站存在一些问题...在其中一个页面上,只要有撇号 (') 或破折号 (-),符号被替换为一个奇怪的黑色菱形,中间有一个问号

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

这就是我的意思

Here's what I mean

网站上出现这些符号的地方似乎都在发生这种情况.我以前从未见过这个,谁能给我解释一下?

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.za/index.php?c=team 以清楚地了解问题.

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.

这篇关于为什么像撇号和连字符这样的符号在我的网站上被替换为黑色菱形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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