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? 😄
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 way, forking the library and removing the Encoding fixes it for me... Why is this? How does this work? 😄