Crate utf64

source ·
Expand description

UTF-64 is a terse, human-readable, URL-safe encoding for JSONish strings.

It is a way to encode any Unicode string so that it can safely be stored in a URL parameter, in a compact and readable way. This is useful any time you want to pass a JSON blob or Unicode string anywhere in a URL. Output is encoded using base64url-compatible characters: _ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-

Any string-like variable, if it implements AsRef<str>, can be encoded into a UTF-64 string.

More information is available on the website.

Traits§

  • The trait for converting to/from UTF-64