summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Havekes <p.havekes@avans.nl>2018-10-19 11:44:30 +0200
committerPeter Havekes <p.havekes@avans.nl>2018-10-19 11:44:30 +0200
commit2afae21b2bfe0186d6ea29f20185de43d9e24a3d (patch)
tree6db87a56323bc14e8fdd196fef04dfa03b560f80
parent920244b202efbacc3ad80ad3db86a5f0d35db28b (diff)
downloadcalendar-cli-2afae21b2bfe0186d6ea29f20185de43d9e24a3d.zip
clean ical data for output utf-8
-rwxr-xr-xcalendar-cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index a71a77c..60fb11c 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -450,7 +450,7 @@ def calendar_agenda(caldav_conn, args):
events = []
if args.icalendar:
for ical in events_:
- print(ical.data)
+ print(ical.data).encode('utf-8').strip()
else:
## flatten. A recurring event may be a list of events.
## jeez ... zimbra and DaviCal does completely different things here