Sunday, October 12, 2008

apostrof urlencode olmadı

normalde html de bi link oluştururken apostrofu encode etmeniz gerekmez ama ben <a href='adres'>isim</a> şeklinde link oluşturuyordum tabi bu adresin içinde apostrof olma ihtimali hiç gelmezdi aklıma bi bakdım link bozuluyor. .net için HttpUtility.UrlEncode() fonksiyonunu kullanim dedim. link değişmedi meğersem bu konular kıl olabilirmiş. neyse çözüme gelelim hemen

linkStringi.Replace("'","%27");

bu şekilde replace edince konu çözüldü.

hadi hayırlı tıraşlar.

No comments:

speed test glasgow

at first test upload was 20mbps, something broke it now it gives  0.07 but I am happy with 129 download and price is 16 £