summaryrefslogtreecommitdiffstats
path: root/concerto_2_chrono_format.py
diff options
context:
space:
mode:
authorJosue Kouka <jkouka@entrouvert.com>2017-09-22 12:33:15 (GMT)
committerJosue Kouka <jkouka@entrouvert.com>2017-09-22 12:33:15 (GMT)
commit975d216da51a1f09cb388abb39c47c07b8b9a8c8 (patch)
treea0128b7ab02bbe46462ab35d401c20dc8bf02b1f /concerto_2_chrono_format.py
parentbad734553e0b9e780006a1e62c4461b122793b8f (diff)
downloadconcerto2chronoformat-975d216da51a1f09cb388abb39c47c07b8b9a8c8.zip
concerto2chronoformat-975d216da51a1f09cb388abb39c47c07b8b9a8c8.tar.gz
concerto2chronoformat-975d216da51a1f09cb388abb39c47c07b8b9a8c8.tar.bz2
fix encoding issue (#18055)
Diffstat (limited to 'concerto_2_chrono_format.py')
-rwxr-xr-xconcerto_2_chrono_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/concerto_2_chrono_format.py b/concerto_2_chrono_format.py
index 5b216fe..82c3b9e 100755
--- a/concerto_2_chrono_format.py
+++ b/concerto_2_chrono_format.py
@@ -140,8 +140,8 @@ class ConcertoFormatter(object):
agenda_id = event['ID_LIE']
if not agenda_id in agendas:
nursery_slug = agenda_id
- nursery = event['LIB_NOM_LIE']
- agenda = {'slug': nursery_slug, 'label': unicode(nursery, errors='replace'),
+ nursery = event['LIB_NOM_LIE'].decode('iso-8859-1').encode('utf8')
+ agenda = {'slug': nursery_slug, 'label': nursery,
'events': [], 'kind': 'events', 'minimal_booking_delay': 0, 'maximal_booking_delay': 30}
agenda['permissions'] = {'edit': None, 'view': None}
else: