rontolisp:url-encode
(rontolisp:url-encode string)
Encodes a string for embedding in a URL: RFC 3986 unreserved characters
(letters, digits, -, ., _, ~) pass through unchanged and every other
character becomes the percent-encoded form of its UTF-8 bytes (a space
becomes %20, not +). The inverse is
rontolisp:url-decode.
The typical use is building a rontolisp:fetch URL
from runtime values:
Backend support
Works on every backend and in every WASM mode (Preview 1 included): the library is written in rontolisp itself and is compiled into the program when used.