Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch error adding link to notebook list #229

Merged
merged 1 commit into from
Jul 23, 2015
Merged

Conversation

takluyver
Copy link
Member

Part of the fix for gh-223.

If a filename can't be decoded in the current encoding, Python escapes the undecodable bytes as unpaired surrogates, which JS doesn't like building a URL from.

This doesn't make the undecodable filename openable, but it stops it from breaking the listing of other files.

The real fix is to set up the locale encoding correctly so that the filenames can be decoded.

Part of the fix for jupytergh-223.

If a filename can't be decoded in the current encoding, Python escapes
the undecodable bytes as unpaired surrogates, which JS doesn't like
building a URL from.

This doesn't make the undecodable filename openable, but it stops it
from breaking the listing of other files.

The real fix is to set up the locale encoding correctly so that the
filenames can be decoded.
minrk added a commit that referenced this pull request Jul 23, 2015
Catch error adding link to notebook list

closes #223
@minrk minrk merged commit 788c16d into jupyter:master Jul 23, 2015
@minrk minrk added this to the 4.0 milestone Jul 23, 2015
@takluyver takluyver deleted the i223 branch July 24, 2015 21:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants