Open ph1l opened 5 years ago
The following seems to allow the sync to complete, but I'm not sure if it's the fix:
elektron@x200:~/code$ diff -Naur pycarddav/pycarddav/model.py /usr/lib/python2.7/dist-packages/pycarddav/model.py
--- pycarddav/pycarddav/model.py 2018-11-21 11:02:56.765793646 -0800
+++ /usr/lib/python2.7/dist-packages/pycarddav/model.py 2018-11-21 12:41:04.327831364 -0800
@@ -197,7 +197,7 @@
@property
def name(self):
- return unicode(self['N'][0][0]) if self['N'] else ''
+ return unicode(self['N'][0][0].decode('utf8')) if self['N'] else ''
@name.setter
def name(self, value):
@@ -207,7 +207,7 @@
@property
def fname(self):
- return unicode(self['FN'][0][0]) if self['FN'] else ''
+ return unicode(self['FN'][0][0].decode('utf8')) if self['FN'] else ''
@fname.setter
def fname(self, value):
The string it seems to be choking on is
Le\xc3\xb3n;Joel;Gil;;