Closed
Description
Encore's API Explorer encodes API payloads into base64 to serialize arbitrary bytes into JSON (and be compatible with Go's handling of []byte
in JSON). Unfortunately this causes a problem due to how JavaScript's atob
/btoa
functions work with unicode (see The Unicode Problem on MDN), and results in an exception:
Uncaught (in promise) DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Metadata
Metadata
Assignees
Labels
No labels