Permalink
Browse files

Fix ASCII encoding error while using print u'\u010c' non-ASCII char a…

…nd similar.
  • Loading branch information...
Gasper Zejn authored and defunkt committed Mar 19, 2010
1 parent eee42c6 commit 31ed99536d478ca4f631e27f5d7f0eb7123abe4a
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/github/commands/rest2html
@@ -42,7 +42,8 @@ def main():
parts = publish_parts(text, writer=Writer(), settings_overrides=SETTINGS)
if 'html_body' in parts:
- return parts['html_body']
+ html = parts['html_body']
+ return html.encode('utf-8')
return ''
if __name__ == '__main__':

0 comments on commit 31ed995

Please sign in to comment.