Skip to content

Commit

Permalink
Merge pull request kolypto#1 from MiCHiLU/master
Browse files Browse the repository at this point in the history
Fix UnicodeEncodeError for unicode characters
  • Loading branch information
mattrobenolt committed Dec 8, 2012
2 parents d0c0341 + b0cf53e commit 79c673a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jinja2cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def cli(opts, args):
sys.exit(1)

env = Environment(loader=FileSystemLoader(os.getcwd()))
sys.stdout.write(env.get_template(args[0]).render(data))
sys.stdout.write(env.get_template(args[0]).render(data).encode('utf-8'))
sys.exit(0)


Expand Down

0 comments on commit 79c673a

Please sign in to comment.