8000 API Explorer does not support unicode in payload · Issue #96 · encoredev/encore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
10000
API Explorer does not support unicode in payload #96
Closed
@eandre

Description

@eandre

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0