Commit 2e797a51 by Michael DeHaan

Merge pull request #2432 from ciupicri/devel-unicode

module_formatter.return_data: use UTF-8 encoding
parents 9bd586ac 29aaa5e6
......@@ -127,7 +127,7 @@ def load_examples_section(text):
def return_data(text, options, outputname, module):
if options.output_dir is not None:
f = open(os.path.join(options.output_dir, outputname % module), 'w')
f.write(text)
f.write(text.encode('utf-8'))
f.close()
else:
print text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment