diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 98f841d81..121217866 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -1219,11 +1219,11 @@ class UTF16Reader(BaseReader): self.reset() def readline(self): - l = self.ifile.readline() + l = unicode(self.ifile.readline()) if l.strip(): - return l + return l.translate(STRIP_DICT) else: - return self.ifile.readline() + return unicode(self.ifile.readline()).translate(STRIP_DICT) class AnsiReader(BaseReader):