Changes

Jump to: navigation, search

Addon:Place completion tool

21 bytes removed, 04:04, 7 July 2015
Non UTF-8 latitude/longitude file
The place completion tool expects the input files for location lookup to be in unicode (utf-8). On the occasion this is not the case, you will get the error:
<code><nowikipre>File "/home/benny/programms/gramps/gramps2/src/plugins/PlaceCompletion.py", line 851, in load_latlon_file
self.latlonfile_datastr = infile.read()
File "/usr/lib/python2.4/codecs.py", line 481, in read
File "/usr/lib/python2.4/codecs.py", line 293, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1610092-1610094: invalid data</nowiki></codepre>
Note that the Place Completion tool catches these errors and shows you an information box. After this, the tool will attempt to read the file with utf-8 (unicode), ignoring errors. This might give good results, but will of course fail to produce results on non-unicode encoded files.

Navigation menu