Link to home
Start Free TrialLog in
Avatar of Wayne Barron
Wayne BarronFlag for United States of America

asked on

apostrophe in a URL name.(Trying not to encode it)

Hello, All.

I am trying my best to NOT have to encode the apostrophe in a URL name to this: Nothin%27_to_Lose.
I have tried to replace the apostrophe with a * or a Period, and when I do a Request.QueryString("Title") on this
Nothin*_to_Lose
It is replaced with
Nothin

What am I missing here?
Does the Request.QueryString() not work with these types of characters?

Wayne
Avatar of Wayne Barron
Wayne Barron
Flag of United States of America image

ASKER

Looking at a Wikipedia article.


Letters (AZ and az), numbers (09) and the characters '*','-','.' and '_' are left as-is

The octet corresponding to the tilde ("~") is permitted in query strings by RFC3986 but required to be percent-encoded in HTML forms to "%7E"


OK, with that. I SHOULD be able to use.
* asterisk
. Period

However, when I try, it cuts off everything from that character to the end.

I can use the _ and - without an issue.


I also checked the log files and there is nothing showing that would indicate it was not working.
It just will not work in a query.

ASP Classic website.

ASKER CERTIFIED SOLUTION
Avatar of Wayne Barron
Wayne Barron
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial