8014: Importing gedcom files containing multibyte UTF-8 characters fails
This commit is contained in:
parent
da97578658
commit
43cfb600d5
@ -7604,9 +7604,9 @@ class GedcomStageOne(object):
|
|||||||
data = line.split(None, 2) + ['']
|
data = line.split(None, 2) + ['']
|
||||||
try:
|
try:
|
||||||
(level, key, value) = data[:3]
|
(level, key, value) = data[:3]
|
||||||
value = value.strip()
|
|
||||||
level = int(level)
|
level = int(level)
|
||||||
key = key.strip()
|
key = conv_to_unicode(key.strip())
|
||||||
|
value = conv_to_unicode(value.strip())
|
||||||
except:
|
except:
|
||||||
LOG.warn(_("Invalid line %d in GEDCOM file.") % self.lcnt)
|
LOG.warn(_("Invalid line %d in GEDCOM file.") % self.lcnt)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user