-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
nbconvert can't handle Heading with Chinese characters on Japanese Windows OS. #3818
Comments
|
|
Problem only seems to exist on py2.x |
@jdfreder : |
Ah thanks @takluyver . I'm walking through it with winpdb right now, it's either Jinja or the FilesWriter (probably the later) |
Finally found the problem, the Edit: Should have looked there in the first place, since it was in your trace. The thing is, I can't duplicate the error on my machine because I'm running ascii default encoding. So for me, when I try to convert that nb you posted, I end up with a bunch of question marks. I've found that removing the |
@zhangruoyu Sorry it took me so long to make the fix. I was out of town for the past week. When you get the chance please try the fix I posted. I confirmed it fixes the problem on my machine. |
@jdfreder It works, thank you. |
No problem, let's wait to close it until the PR that fixes it gets merged |
nbconvert: Fix for unicode html headers Closes #3818
nbconvert: Fix for unicode html headers Closes ipython#3818
Convert following notebook by
ipython nbconvert test.ipynb
will raise Exception:Here is the content of the notebook. I am using a Japanese Windows, the default encoding is:
When call
py3compat.cast_bytes_py2(html)
it can't convert the Chinese characters correctly.The text was updated successfully, but these errors were encountered: