Skip to content

Double utf8 encoding #512

@PascalPixel

Description

@PascalPixel

Using this library, pushing out a string as content for createBlob encodes it to utf-8.
The result on GitHub is utf-8, so I assumed that:

  • either my string was already encoded (it is not, running Utf8.decode() errors)
  • something is encoding the string twice in the library (I can't see that anywhere)
  • I'm encoding the string myself already (No, and doing so on purpose results in a double-encoded utf8 string on GitHub)
  • GitHub's REST end point changed and accepts utf-8 by default or encodes it itself now

Either way, forking the library and removing the Encoding fixes it for me... Why is this? How does this work? 😄

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