# HG changeset patch # User Giulio@puck # Date 1249405078 -7200 # Node ID c0794abb494e7c821e92cefb324c8bda6840c79b # Parent 85f013a831d93fd95236e470edc6ed8a2af2657c Unicode fiddling. diff -r 85f013a831d9 -r c0794abb494e it/web/genindex.py --- a/it/web/genindex.py Tue Aug 04 18:30:58 2009 +0200 +++ b/it/web/genindex.py Tue Aug 04 18:57:58 2009 +0200 @@ -9,7 +9,7 @@ chapters = (sorted(glob.glob('../ch*.xml')) + sorted(glob.glob('../app*.xml'))) -fp = open('index-read.html.in', 'w') +fp = open('index-read.html.in', 'w', encoding='utf-8') print(''' @@ -23,7 +23,7 @@ title = None chapid = None chaptype = None - for line in open(c): + for line in open(c, encoding='utf-8'): m = chapter_re.search(line) if m: chaptype, chapid = m.groups() diff -r 85f013a831d9 -r c0794abb494e it/web/index-template.html --- a/it/web/index-template.html Tue Aug 04 18:30:58 2009 +0200 +++ b/it/web/index-template.html Tue Aug 04 18:57:58 2009 +0200 @@ -1,6 +1,7 @@ + Mercurial: la guida definitiva