For context, see testing overview.

This document is encoded in ISO-8859-13:

$ document.characterSet
"ISO-8859-13"

When href attributes are encoded for use in HTTP, the pathname is encoded in UTF-8, but the search part is encoded with ISO-88590-13:

$ a = document.createElement('a'); null
$ zz = String.fromCharCode(parseInt("017D", 16)); null
$ a.href = "http://example/" + zz + "?" + zz; null
$ a.pathname
"/%C5%BD"
$ a.search
"?%DE"



See also: