簡體   English   中英

php的html / xhtml格式的UTF“ \\ x94”驗證錯誤

[英]Utf “\x94” validation error in html/xhtml form for php

好吧,XHTML希望和我一起玩一些游戲,直到現在為止,我的表現還不錯。 查看下面的兩個代碼片段,我沒有發現它們有什么問題,但是,當我嘗試驗證時,我收到“錯誤是:utf8“ \\ x94”在第91行未映射到Unicode,我將第91行注釋為表示問題所在。“對不起,無法檢查該文檔?

有什么我沒看到的,因為到目前為止我一直在使用相同的Doctype並進行驗證嗎?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

替代文字http://img251.imageshack.us/img251/3199/wtfe.png

<option value=”29”>29</option>
<option value=”30”>30</option>
<!-- Here is line 91, below, there is nothing wrong with it? -->
<option value =”31”>31</option> <!-- Line 91 WTF? I still can't validate-->
</select>
<input type = "text" name = "year"
value = "YYYY" size = "4" /> </p>
<!-- This approach gives you more control for validating and formatting the information submitted. How?
Well the user will be given a preloaded Date of Brith box with the option to select the Month, Day and Year
as opposed to having the user type in some weird or crazy stuff.
The caveat though is the fact that the html code just becomes longer and cumbersome on the eyes or coder.-->

我認為您的文件中可能包含某種“智能引號”。 用普通的ASCII引號替換它們。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM