From 01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 16:27:37 +0100 Subject: utf 8 ascii foo --- imdb-lookup/imdbinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imdb-lookup/imdbinfo.py') 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): -- cgit v1.2.1