Skip to content

Markdown text with accents produces invalid IPYNB file #896

Closed
@drdarshan

Description

Jupytext newbie here, so apologies if this is a known issue.

I created a markdown file containing an accented character. When I attempted to open it in JupyterLab the notebook had garbled text, see: image

I also looked at the IPYNB file and it seemed to have incorrect JSON:

  {
   "cell_type": "markdown",
   "id": "6f176b80",
   "metadata": {},
   "source": [
    "LS0tDQpqdXB5dGV4dDoNCiAgZm9ybWF0czogaXB5bmIsbWQ6bXlzdA0KICB0ZXh0X3JlcHJlc2Vu\n",
    "dGF0aW9uOg0KICAgIGV4dGVuc2lvbjogLm1kDQogICAgZm9ybWF0X25hbWU6IG15c3QNCiAgICBm\n",
    "b3JtYXRfdmVyc2lvbjogMC4xMw0KICAgIGp1cHl0ZXh0X3ZlcnNpb246IDEuMTEuNQ0Ka2VybmVs\n",
    "c3BlYzoNCiAgZGlzcGxheV9uYW1lOiBQeXRob24gMyAoaXB5a2VybmVsKQ0KICBsYW5ndWFnZTog\n",
q    "cHl0aG9uDQogIG5hbWU6IHB5dGhvbjMNCi0tLQ0KRXQgdm9pbOAhIA0K"
   ]
  q},

Part of what makes this a bit inconvenient is that Jupytext auto-saved the notebook and overwrote my original markdown (which contained a whole bunch of other text) with the garbled cell. Is it possible to work around this issue or to detect a failure during conversion? Thanks in advance.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions