&gt; Query string and fragment are encoded using page encoding and then percent-escaped. For URLs entered to address bar it seems that UTF-8 is used, not page encoding.<p>Well, for links that appear in a page to be defined using page encoding doesn&#x27;t sound so shocking. That doesn&#x27;t explain why the path would use UTF-8 regardless of page encoding, though.<p>Are you sure URLs directly entered in the address bar use UTF-8 for query strings and fragments rather than system encoding? If my OS is set to use GB2312, how do URL fragments that I type into the browser get encoded?