02 Encoding rules

- Values are inserted as-is. Before sending, the firmware percent-encodes only spaces, control characters and non-ASCII bytes in the URL. & ? # / + = % are kept. -> Inside a query string or a single path segment, use the _enc form: "https://x/search?q={title_enc}", "https://x/files/{id_enc}".
- Nothing is JSON-escaped. "body": "{\"q\":\"{query_raw}\"}" breaks if the user searches for a "quoted" word. The same goes for {title} in a sidecar body. Prefer numeric ids in JSON bodies, and use search via URL ({query}) where the API allows it.
- An unknown variable stays literally in the text ({cfg.typo} is sent as is).
- Because bodies are JSON inside a JSON string, escape the quotes: "body": "{\"page\":{page},\"per_page\":{limit}}".
‹ PreviousReader file (.txt)