Skip to content

Commit

Permalink
Merge pull request ipython#4092 from jdfreder/japanese
Browse files Browse the repository at this point in the history
nbconvert: Fix for unicode html headers

Closes ipython#3818
  • Loading branch information
minrk committed Sep 3, 2013
2 parents 2e0134d + 1967ddc commit 0021abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/nbconvert/filters/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_anchor(html):
For use in heading cells
"""
h = ElementTree.fromstring(py3compat.cast_bytes_py2(html))
h = ElementTree.fromstring(py3compat.cast_bytes_py2(html, encoding='utf-8'))
link = html2text(h).replace(' ', '-')
h.set('id', link)
a = ElementTree.Element("a", {"class" : "anchor-link", "href" : "#" + link})
Expand Down

0 comments on commit 0021abd

Please sign in to comment.