* src/WriteGedcom.py: used 'replace' mode on iso-8859-1 string
encoding conversion svn: r4603
This commit is contained in:
parent
026da172b7
commit
6a5c66aa31
@ -1,3 +1,7 @@
|
|||||||
|
2005-05-16 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/WriteGedcom.py: used 'replace' mode on iso-8859-1 string
|
||||||
|
encoding conversion
|
||||||
|
|
||||||
2005-05-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2005-05-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/ReadGedcom.py (parse_trailer): Catch EOF to warn about premature
|
* src/ReadGedcom.py (parse_trailer): Catch EOF to warn about premature
|
||||||
EOF only once; Always close file; (parse_record): Properly catch
|
EOF only once; Always close file; (parse_record): Properly catch
|
||||||
|
@ -59,7 +59,7 @@ def keep_utf8(s):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
def iso8859(s):
|
def iso8859(s):
|
||||||
return s.encode('iso-8859-1')
|
return s.encode('iso-8859-1','replace')
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user