Skip to content

Commit

Permalink
Fix #20 don't re-encode when appending to dom
Browse files Browse the repository at this point in the history
When and where various python stdlib are going to enforce unicode
is sometimes a bit confusing.
  • Loading branch information
cdent committed Jul 29, 2012
1 parent d07859d commit 35fc60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twikified.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def render(tiddler, environ, seen_titles=None):
interior_content = render(interior_tiddler, environ,
seen_titles)
interior_dom = parser.parse('<div>' +
interior_content.encode('utf-8', 'replace')
interior_content
+ '</div>')
span.appendChild(interior_dom.getElementsByTagName('div')[0])

Expand Down

0 comments on commit 35fc60a

Please sign in to comment.