Skip to content

Commit

Permalink
FIX: nbconvert unicode html header characters (Win + Py2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfreder committed Aug 21, 2013
1 parent 6b9d6ba commit 1967ddc
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 1967ddc

Please sign in to comment.