1
0
Fork 0
forked from github/pelican

Removed another utf-8 related bug

This commit is contained in:
Skami18 2011-08-16 18:43:51 +02:00
commit 26eecf082a

View file

@ -219,7 +219,7 @@ class ArticlesGenerator(Generator):
if os.path.dirname(f) == self.path:
category = self.settings['DEFAULT_CATEGORY']
else:
category = os.path.basename(os.path.dirname(f))
category = os.path.basename(os.path.dirname(f)).decode('utf-8')
if category != '':
metadata['category'] = unicode(category)