diff --git a/organize/browser/report.py b/organize/browser/report.py index 65537fc..09ab89c 100644 --- a/organize/browser/report.py +++ b/organize/browser/report.py @@ -129,5 +129,12 @@ class RegistrationsExportCsv(object): def encode(self, text): if type(text) is unicode: - text = text.encode(self.encoding) + result = [] + for c in text: + try: + c = c.encode(self.encoding) + except UnicodeEncodeError: + c = '?' + result.append(c) + text = ''.join(result) return text