HTML,XHTML验证错误 - 无法解析 [英] HTML, XHTML validation error - can't resolve

查看:182
本文介绍了HTML,XHTML验证错误 - 无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图验证我的网页最近两个小时,在成功验证之前我只剩下一个错误,但我一直在获取字符解码问题,我无法绕过它.....



整个文件没有问题,只是说...


对不起,我我无法验证这个文件,因为在第77行它包含一个或多个字节,我不能解释为 utf-8 (换句话说,找到的字节不是有效值指定的字符编码)。请检查文件内容和字符编码指示。



错误是:utf8\x85没有映射到Unicode




第77行唯一的内容是某些< p> 标签内的文本,我尝试将它们更改为< a> / code>或< span> ,然后将< p> 松散在 div 内,但是当我删除标签内的文本时,错误消失。



我正在使用utf-8编码:

 < meta http-equiv =Content-typecontent =text / html; charset = utf-8/> 

对不起,如果这很简单,我的知识非常基础,我只是第一个编辑:< p> 标记内的文字如下:

>


     
< p> 我们的团队随着最新的b $ b政治新闻而蓬勃发展。我们全天候工作
,一旦发生
,就会为您带来
最新,最重要的新闻。我们要求什么作为回报...
什么都没有!本网站由我们资助!
您的满意度就是支付
包给我们,然后是一大堆无法追踪的
假币。< br />< br /> code>

     注册
到我们的新闻快讯,在新闻发布后立即获得正常的
新闻更新
而无需导航到我们的
网站。为了您的安全,我们只将
您输入我们网站的详细信息卖给
那些小指诺言他们
不会与
淘气的公司。< br />< br />

      StudentPolitics.Now
-
2011 < / p>



解决方案

以UTF格式保存文档。如果已经存在,请尝试将源代码复制粘贴到一个新文件并将其保存为UTF格式(有时在某些程序中可能会在编辑期间卡住)。



您使用的是什么编辑器?






编辑:您的某些非标准字符文本: ... (单个字符中的三个点,(花括号), '(curly撇号), - (短划线)。 $ b

已经从Word或类似的文本处理器中复制了你的文本,我也经常这样做,要么将这些字符改为ASCII对应文件或HTML实体,要么保存UTF编码文件。


I have been trying to validate my web page for the last two hours, I only have one error remaining before it is successfully validated but I keep on getting the character decoding problem, I cannot get round it.....

The whole document is fine except it says...

Sorry, I am unable to validate this document because on line 77 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 "\x85" does not map to Unicode

The only thing on line 77 is some text inside some <p> tags, I have tried changing them to <a>, or <span> and taking the <p> away so it is just loose inside the div but the error only goes away when I delete the text inside the tags.

I am using the utf-8 encoding:

<meta http-equiv="Content-type" content="text/html;charset=utf-8" />

I am sorry if this is simple to resolve, my knowledge is extremely basic, I am only a first year computing student.

EDIT: the text inside the <p> tags are as follows:

      <p>Our team thrives on the latest political news as we do you. We work around the clock to bring you the latest, most important news as soon as it happens. What do we ask in return… nothing! This site is funded by us! Your satisfaction is as much a pay packet to us then a wad of untraceable counterfeit notes.<br/><br/>
     Sign up to our newsletter to get regular updates on news as soon as it happens without having to navigate to our site. For your security we only sell the details you input to our site to companies who "pinky promise" they won’t be naughty with them.<br/><br/>
     StudentPolitics.Now – Trading in satisfying others since 2011</p>

解决方案

Save your document in a UTF format. If it already is, try copy-paste the source code to a new file and save it in UTF format (sometimes it can get stuck during edits in some programs).

What editor are you using?


EDIT: There are some non-standard characters in your text: (three dots in a single character, "" (curly braces), (curly apostrophe), (dash).

I guess you've copied your text from Word or a similar text processor, I get that often too. Either change those characters to their ASCII counterparts or HTML entities or be sure to save the file with UTF encoding.

这篇关于HTML,XHTML验证错误 - 无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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