Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Chinese character in Node Attachment results in error encoded base64 for Github extension #71

@zxteloiv

Description

@zxteloiv

Hi, there.

I entered some Chinese characters along with a list of urls in the node attachment of a node.
There's no problem if I export the mindmap. But if I save it to Github, I receive a 422 error as follows.

PUT https://api.github.com/repos/zxteloiv/mindmup_storage/contents/20150427.mup

{
  "message": "content is not valid Base64",
  "documentation_url": "https://developer.github.com/v3/repos/contents/"
}

Parameters for this PUT action is something like

{"content":"ewogICJ0aXRsZ...    ","message":"new sections added","sha":"61fc46b75f54a66c9ccfcb72ee3bd0a18afc60d8","branch":"master"}

And I copied out the content field to any online base64 decoding service, I get a stripped json string

     "title": "learning essays",
      "id": 60,
      "attr": {
        "attachment": {
          "contentType": "text/html",
          "content": "�֖Qȹё(ݝܹa݌ȀĐ�Ѽ͍Ĺѵȹё(ݝܹa݌ȀĐ�Ѽ͍ȹѵȹё(ݝܹa݌ȀĐ

My environment is

  • OSX Yosemite 10.10.3
  • Firefox 37.0.2

I hope this problem could be solved, then I can type in things more freely :)
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions