By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,244 Members | 1,972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,244 IT Pros & Developers. It's quick & easy.

Encode quote for anchor

P: n/a
I send tue querystring : ?lib=l%27%C3%A9cole
that means "l'école".

I wish I created a anchor :
<a href='test.aspx?id=<
%=HttpUtility.UrlEncode(Request.QueryString["lib"])%>'>click here</a>

But I get the code below :

<a href="test.aspx?lib=l'%c3%a9cole">click here</a>

The quote is not become %27 ! Why ?

It's a problem if I have the quote between quotes and not double

Jun 18 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.