Browse files

Convert unicode compiled template to an utf8 char buffer when writing…

… to a file

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
  • Loading branch information...
1 parent 05803fb commit 158b56c8858f35669ee997ffd08a9e56aff3d75e @jbq jbq committed with R. Tyler Ballance Apr 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/CheetahWrapper.py
View
2 src/CheetahWrapper.py 100755 → 100644
@@ -587,7 +587,7 @@ def _compileOrFillBundle(self, b):
sys.stdout.write(output)
else:
f = open(dst, 'w')
- f.write(output)
+ f.write(output.encode('utf8'))
f.close()

0 comments on commit 158b56c

Please sign in to comment.