Skip to content

Commit

Permalink
Fixed UnicodeEncodeError when used with --direct-ouput option.
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Sep 5, 2011
1 parent 23f6548 commit 87a5738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landslide/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def execute(self):
raise IOError(u"Direct output mode is not available for PDF "
"export")
else:
print self.render()
print self.render().encode(self.encoding)
else:
self.write()
self.log(u"Generated file: %s" % self.destination_file)
Expand Down

0 comments on commit 87a5738

Please sign in to comment.