[#9AFE8BBE491369CEC5857C0AF9A53BEFD1CC115C]
Apply percent-encoding to a string
templatestd::size_t encode( char* dest, std::size_t size, core::string_view s, CharSet const& unreserved, encoding_opts opt = = {});
This function applies percent-encoding to the string using the given options and character set. The destination buffer provided by the caller is used to store the result, which may be truncated if there is insufficient space.
char buf[100];
assert( encode( buf, sizeof(buf), "Program Files", pchars ) == 15 );
Throws nothing.