韌館-LearnHouse

Archive for 18 12 月, 2011

[WP7]HTML ASCll Codes/URL Encoder

什麼是HTML ASCII Codes呢???其實這跟URL要做Encdoer的道理是一樣的

我們知道網頁在傳輸其實是透過thml語法編織而成的文字資料再做傳遞

RFC 3986規範了一些字元是作為保留字(如:=、!@/?等)

而在程式的角度中如果不將一些特殊的字元做編碼的話,很容易造成誤判

舉個例子來說,假設有個表單類似下列的語法

<input type="text" name="postalcode=1" value="">
<input type="text" name="postalcode=2" value="">

我們會發現name屬性裡有值是postalcode=1
 Read more...
2011年12 月 posted by admin in 程式&軟體 and have No Comments