Guide

Percent-encoding: what to escape in a URL, and where

There is no single answer to "is this character safe in a URL", because a character that is harmless in a query string can split a path in two. Percent-encoding is component-sensitive, and most encoding bugs come from applying one component's rules to another.