diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 16:27:37 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 16:27:37 +0100 |
commit | 01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82 (patch) | |
tree | 6221e9b8beeeb4e365df5633080979d7318ec604 | |
parent | fcc3f76455f4d6dc6616bf1b6edc4527fd15a6bb (diff) | |
download | scripts-01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82.tar.gz scripts-01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82.zip |
utf 8 ascii foo
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 7d00a72..196b6ad 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -155,7 +155,7 @@ def do_index(args, imdb_ids): 'title' : 'Movie overview', } assert not os.path.exists("index.html"), "index.html already exists" - open("index.html", "w").write(template.render(mapping)) + open("index.html", "w").write(template.render(mapping).encode('utf-8')) class HelpAction(argparse._HelpAction): def __call__(self, parser, namespace, values, option_string=None): |