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

Strange results from Server.UrlEncode

P: n/a
I am using Server.UrlEncode to make a piece of data safe to use as a
QueryString. The data I am using is as follows:

Which returns the following String:

"An Expression I Can't Show"

This is the String that I expected and wanted from this collection. I then
place the code inside the Server.UrlEncode method as follows:

Which returns the following string:


Notice that the Server.UrlEncode method replaces the single quote with the 3
character codes rather than one. Why does this return 3 character codes?
Nathan Sokalski
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.