You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
eandre
added a commit
to eandre/encore
that referenced
this issue
Sep 20, 2021
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'satob
/btoa
functions work with unicode (see The Unicode Problem on MDN), and results in an exception:The text was updated successfully, but these errors were encountered: