Commits

Javier Novoa C.  committed 835de8f

Unicode support for comments.

  • Participants
  • Parent commits bd00808

Comments (0)

Files changed (1)

 
     ensuredir(conf.comment_compile_area)
     modified_RST = convert_raw_RST(raw_RST)
-    with open(conf.comment_compile_area + os.sep + 'index.rst', 'w') as fhand:
+    with copen(conf.comment_compile_area + os.sep + 'index.rst', 'w', 'utf-8') as fhand:
         fhand.write(modified_RST)
 
     try:
     with open(pickle_f, 'r') as fhand:
         obj = pickle.load(fhand)
 
-    html_body = obj['body'].encode('utf-8')
+    html_body = obj['body'] # .encode('utf-8')
 
     # Any equations in the HTML?  Transfer these images to the media directory
     # and rewrite the URL's in the HTML.