Strange results from Server.UrlEncode

  • Thread starter Nathan Sokalski
  • Start date
N

Nathan Sokalski

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:

ratedpoem("title")


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:

Server.UrlEncode(ratedpoem("title"))


Which returns the following string:

"An+Expression+I+Can%e2%80%99t+Show"

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?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top