Don't choke on non-ASCII characters in agenda notes

- Legacy-Id: 1900
This commit is contained in:
Pasi Eronen 2009-12-17 08:56:50 +00:00
parent 8bb86c9f65
commit a921985eb1

View file

@ -126,7 +126,7 @@ def agenda_docs(date, next_agenda):
if section_key not in res:
res[section_key] = []
if id.note:
id.note = str(id.note).replace("\240"," ")
id.note = id.note.replace(u"\240",u" ")
res[section_key].append({'obj':id})
return res