Closed brunobord closed 13 years ago
this bug occurs with every template I've tried.
Here is my patch
diff --git a/pelican/contents.py b/pelican/contents.py
index 1ace659..1112349 100644
--- a/pelican/contents.py
+++ b/pelican/contents.py
@@ -1,3 +1,4 @@
+#-*- coding: utf-8 -*-
from pelican.utils import slugify, truncate_html_words
@@ -76,7 +77,7 @@ class Page(object):
@property
def locale_date(self):
- return self.date.strftime(self.date_format)
+ return self.date.strftime(self.date_format).decode('utf')
Hmm, thanks for the report. I HATE unicode problems, it was too easy :p
I'm not sure to understand why it's doing that but I can reproduce it. It's probably caused by the use of setlocale, I'm trying to understand what's happening !
Fixed in the last head. Thanks.
I've got a problem, probably caused by a Unicode / ascii issue caused by the brand-new-shiny locale date formatting.
I guess, the "december" month becoming "Décembre" spits out the following message:
the chosen formatting is: