python-gedcom icon indicating copy to clipboard operation
python-gedcom copied to clipboard

invalid continuation byte

Open Thierry-Dumont opened this issue 3 years ago • 2 comments

With a .ged file exported from geneanet, I get an encoding problem error:

21 input = input[3:] 22 prefix = 3 ---> 23 (output, consumed) = codecs.utf_8_decode(input, errors, True) 24 return (output, consumed+prefix) 25

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 20: invalid continuation byte

Thierry-Dumont avatar Jan 19 '22 09:01 Thierry-Dumont

Happens same with gedcom from MyHeritage

gorogm avatar Jan 27 '22 18:01 gorogm

This hack worked for me: https://github.com/nickreynke/python-gedcom/issues/47

gorogm avatar Jan 27 '22 18:01 gorogm