Skip to content

Use of btoa in the browser prevents use of Unicode characters聽#12

Description

@franky47

Describe the bug

When pushing data that has Unicode points in the browser, btoa is used to encode the file content to be sent to GitHub, which does not handle those characters.

To Reproduce

gitrows.put(path, { test: '馃檪' })

Expected behavior

Unicode points should be converted to base64 both in the browser and Node.js.

Shameless plug, I made the following package for universal conversion to solve similar issues in the past: @47ng/codec.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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