Import std.text.encoding
Percent
struct
Public Struct Percent
Percent-encoding, which a URL's parts are in: each byte of text's UTF-8, but for the letters, digits, "-", ".", "_", and "~", as "%" and two hex digits.
Examples
Expect(Percent.Encode("a b&c") == "a%20b%26c")
Expect(Percent.Decode("a%20b%26c") == "a b&c")std/text/encoding.fb, line 373
-
textpercent-encoded, with each ASCII character inkeep, like "/" for a path, kept as it is. -
bytespercent-encoded, with each byte of an ASCII character inkeepkept as it is. -
The text percent-encoded
textstands for, or Null when a "%" isn't followed by two hex digits, or the bytes aren't UTF-8. -
The bytes percent-encoded
textstands for, or Null when a "%" isn't followed by two hex digits.
Report an issue with this page or with FutureBlitz on GitHub.