Then you should unquote it first. Are you sure they weren't giving an example of building a url from dictionary generated from the database or app code? i.e., not from a already-encoded query? %25 is just the url encoded version of a percent sign. There may be other cases we're missing with this approach.