From 92cb8cbe8d516d6b14d38ff45a1781ff1d90663c Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Mon, 12 Nov 2012 19:22:56 +0100 Subject: Make the locale encoding explicit to work even when the system's config is weird --- famille.py | 2 +- templates/news/list.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/famille.py b/famille.py index 6bae72f..82fb42c 100644 --- a/famille.py +++ b/famille.py @@ -13,7 +13,7 @@ from datetime import datetime from bs4 import BeautifulSoup from flask_mail import Mail, Message import locale -locale.setlocale(locale.LC_ALL, 'fr_FR') +locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') def rstify(string): w = Writer() diff --git a/templates/news/list.html b/templates/news/list.html index 99d1571..c0d7e0a 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -17,10 +17,10 @@

Derniers commentaires

-