There are 3 ways to get an URL:<p>a) URL is entered to the address bar. Default encoding (it seems UTF-8) is used for query and fragment.
b) User clicks on a link. Page URL is used; page encoding is already known.
c) Redirect to a new URL happens. I can&#x27;t say out of my head what happens in this case.