X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reindex_blog.py;h=33e9077aefd0e6472959c3300d1f105ea59ef6b0;hb=c1a994b2cce5060f46bb89094a49017a4dd8929a;hp=b1bf4c626e4e18b6cb27c483902921fbd0c80605;hpb=12f41071097586798866c39ff45160554286f138;p=phdru.name%2Fphdru.name.git diff --git a/reindex_blog.py b/reindex_blog.py index b1bf4c6..33e9077 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -551,6 +551,8 @@ else: items = [] for item in tuple(reversed(all_titles_tags))[:10]: year, month, day, file, title, lead, tags = item + lead = lead.decode('koi8-r').encode('utf-8') + title = title.decode('koi8-r').encode('utf-8') url_path = "%s/%s/%s/%s" % (year, month, day, file) item = NewsItem( "%s-%s-%s" % (year, month, day),