Skip to content

Commit c00fcfc

Browse files
committed
bug fix #1: encode utf-8 before saving it
1 parent fdf554a commit c00fcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moban/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def apply_template(jj2_template, data, output_file):
7474
"""
7575
with open(output_file, 'w') as output:
7676
rendered_content = jj2_template.render(**data)
77-
output.write(rendered_content)
77+
output.write(rendered_content.encode('utf-8'))
7878

7979

8080
class Strategy(object):

0 commit comments

Comments
 (0)